summary refs log tree commit diff
path: root/pkgs/development/python-modules/chevron/default.nix
blob: 5f8cc321750858fdac5493c26a9b56c894d8fa15 (plain) (blame)
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
{ lib
, buildPythonPackage
, fetchFromGitHub
, python
}:

buildPythonPackage {
  pname = "chevron";
  version = "0.13.1";

  # No tests available in the PyPI tarball
  src = fetchFromGitHub {
    owner = "noahmorrison";
    repo = "chevron";
    rev = "0.13.1";
    sha256 = "0l1ik8dvi6bgyb3ym0w4ii9dh25nzy0x4yawf4zbcyvvcb6af470";
  };

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

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