depot/third_party/nixpkgs/pkgs/development/python-modules/pybars3/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

38 lines
790 B
Nix

{
python,
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
${python.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
];
};
}