1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 python,
6}:
7
8buildPythonPackage {
9 pname = "chevron";
10 version = "0.13.1";
11 format = "setuptools";
12
13 # No tests available in the PyPI tarball
14 src = fetchFromGitHub {
15 owner = "noahmorrison";
16 repo = "chevron";
17 rev = "0.13.1";
18 sha256 = "0l1ik8dvi6bgyb3ym0w4ii9dh25nzy0x4yawf4zbcyvvcb6af470";
19 };
20
21 checkPhase = ''
22 ${python.interpreter} test_spec.py
23 '';
24
25 meta = with lib; {
26 homepage = "https://github.com/noahmorrison/chevron";
27 description = "Python implementation of the mustache templating language";
28 mainProgram = "chevron";
29 license = licenses.mit;
30 maintainers = with maintainers; [ dhkl ];
31 };
32}