2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
charset-normalizer,
|
|
|
|
django,
|
|
|
|
fetchFromGitHub,
|
|
|
|
jinja2,
|
|
|
|
mako,
|
|
|
|
nose,
|
|
|
|
pyramid,
|
|
|
|
pyramid-mako,
|
|
|
|
pytestCheckHook,
|
|
|
|
six,
|
|
|
|
tornado,
|
2022-09-30 11:47:45 +00:00
|
|
|
}:
|
2020-12-25 13:55:36 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pypugjs";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "5.10.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-12-25 13:55:36 +00:00
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kakulukia";
|
|
|
|
repo = "pypugjs";
|
2024-06-05 15:53:02 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-W+EVNxT2OimNENHe4lJDn6Wm1EbBysGuCD3/Wkdew/U=";
|
2020-12-25 13:55:36 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
charset-normalizer
|
|
|
|
];
|
2020-12-25 13:55:36 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-09-30 11:47:45 +00:00
|
|
|
django
|
|
|
|
jinja2
|
2023-03-15 16:39:30 +00:00
|
|
|
mako
|
2022-09-30 11:47:45 +00:00
|
|
|
nose
|
|
|
|
tornado
|
|
|
|
pyramid
|
2023-10-19 13:55:26 +00:00
|
|
|
pyramid-mako
|
2022-09-30 11:47:45 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestCheckFlags = [ "pypugjs/testsuite" ];
|
2020-12-25 13:55:36 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-12-25 13:55:36 +00:00
|
|
|
description = "PugJS syntax template adapter for Django, Jinja2, Mako and Tornado templates";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pypugjs";
|
2020-12-25 13:55:36 +00:00
|
|
|
homepage = "https://github.com/kakulukia/pypugjs";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lopsided98 ];
|
|
|
|
};
|
|
|
|
}
|