about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pybars3/default.nix
blob: ad7294fd635821c85e27e5f613b06b72dc01d1aa (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
30
31
32
33
34
35
36
37
38
{ python3
, fetchPypi
, lib
, pymeta3
, buildPythonPackage
}:
buildPythonPackage rec {
  pname = "pybars3";
  version = "0.9.7";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-ashH6QXlO5xbk2rxEskQR14nv3Z/efRSjBb5rx7A4lI=";
  };

  propagatedBuildInputs = [
    pymeta3
  ];

  checkPhase = ''
    runHook preCheck
    ${python3.interpreter} tests.py
    runHook postCheck
  '';

  pythonImportsCheck = [
    "pybars"
  ];

  meta = with lib; {
    description = "Handlebars.js template support for Python 3 and 2";
    homepage = "https://github.com/wbond/pybars3";
    changelog = "https://github.com/wbond/pybars3/releases/tag/${version}";
    license = licenses.lgpl3Only;
    maintainers = with maintainers; [ jfly matusf ];
  };
}