summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/chevron/default.nix
blob: 312c3ca27052c6630175a883779529af73bc18da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  python,
  setuptools,
}:

buildPythonPackage {
  pname = "chevron";
  version = "0.14.0-unstable-2021-03-21";
  pyproject = true;

  # No tests available in the PyPI tarball
  src = fetchFromGitHub {
    owner = "noahmorrison";
    repo = "chevron";
    rev = "5e1c12827b7fc3db30cb3b24cae9a7ee3092822b";
    hash = "sha256-44cxkliJJ+IozmhS4ekbb+pCa7tcUuX9tRNYTK0mC+w=";
  };

  build-system = [
    setuptools
  ];

  checkPhase = ''
    ${python.interpreter} test_spec.py
  '';

  meta = {
    homepage = "https://github.com/noahmorrison/chevron";
    description = "Python implementation of the mustache templating language";
    mainProgram = "chevron";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ dhkl ];
  };
}