2022-09-30 11:47:45 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, charset-normalizer
|
|
|
|
, django
|
|
|
|
, fetchFromGitHub
|
|
|
|
, jinja2
|
2023-03-15 16:39:30 +00:00
|
|
|
, mako
|
2022-09-30 11:47:45 +00:00
|
|
|
, nose
|
|
|
|
, pyramid
|
2023-10-19 13:55:26 +00:00
|
|
|
, pyramid-mako
|
2022-09-30 11:47:45 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, six
|
|
|
|
, tornado
|
|
|
|
}:
|
2020-12-25 13:55:36 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pypugjs";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "5.9.12";
|
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";
|
|
|
|
rev = "v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-6tIhKCa8wg01gNFygCS6GdUHfbWBu7wOZeMkCExRR34=";
|
2020-12-25 13:55:36 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +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
|
|
|
|
];
|
|
|
|
|
|
|
|
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";
|
|
|
|
homepage = "https://github.com/kakulukia/pypugjs";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lopsided98 ];
|
|
|
|
};
|
|
|
|
}
|