2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
python3,
|
|
|
|
fetchPypi,
|
|
|
|
lib,
|
|
|
|
pymeta3,
|
|
|
|
buildPythonPackage,
|
2023-11-16 04:20:00 +00:00
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pybars3";
|
|
|
|
version = "0.9.7";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-ashH6QXlO5xbk2rxEskQR14nv3Z/efRSjBb5rx7A4lI=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ pymeta3 ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
${python3.interpreter} tests.py
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pybars" ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
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;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
jfly
|
|
|
|
matusf
|
|
|
|
];
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
}
|