nixpkgs/pkgs/development/python-modules/pybars3/default.nix
Jeremy Fleischman 82056f0fc3 python310Packages.pybars3,python311Packages.pybars3: init at 0.9.7
Co-authored-by: Rohit <rohitsutradhar311@gmail.com>
Co-authored-by: Jeremy Fleischman <jeremyfleischman@gmail.com>
Co-authored-by: Shahar "Dawn" Or <mightyiampresence@gmail.com>
Co-authored-by: Alejandro Sanchez Medina <alejandrosanchzmedina@gmail.com>
Co-authored-by: Matúš Ferech <matus.ferech@gmail.com>
2023-11-16 21:24:04 +07:00

39 lines
781 B
Nix

{ 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 ];
};
}