1{
2 python,
3 fetchPypi,
4 lib,
5 pymeta3,
6 buildPythonPackage,
7}:
8buildPythonPackage rec {
9 pname = "pybars3";
10 version = "0.9.7";
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit pname version;
15 hash = "sha256-ashH6QXlO5xbk2rxEskQR14nv3Z/efRSjBb5rx7A4lI=";
16 };
17
18 propagatedBuildInputs = [ pymeta3 ];
19
20 checkPhase = ''
21 runHook preCheck
22 ${python.interpreter} tests.py
23 runHook postCheck
24 '';
25
26 pythonImportsCheck = [ "pybars" ];
27
28 meta = with lib; {
29 description = "Handlebars.js template support for Python 3 and 2";
30 homepage = "https://github.com/wbond/pybars3";
31 changelog = "https://github.com/wbond/pybars3/releases/tag/${version}";
32 license = licenses.lgpl3Only;
33 maintainers = with maintainers; [
34 jfly
35 matusf
36 ];
37 };
38}