2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, webtest
|
2022-06-16 17:23:12 +00:00
|
|
|
, markupsafe
|
2020-04-24 23:36:52 +00:00
|
|
|
, jinja2
|
2022-06-16 17:23:12 +00:00
|
|
|
, pytestCheckHook
|
2023-10-19 13:55:26 +00:00
|
|
|
, zope-deprecation
|
2020-04-24 23:36:52 +00:00
|
|
|
, pyramid
|
2022-06-16 17:23:12 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-06-16 17:23:12 +00:00
|
|
|
pname = "pyramid-jinja2";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.10.1";
|
2022-06-16 17:23:12 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-06-16 17:23:12 +00:00
|
|
|
pname = "pyramid_jinja2";
|
|
|
|
inherit version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-jFCMs1wTX5UUnKI2EQ+ciHU0NXV0DRbFy3OlDvHCFnc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
markupsafe
|
|
|
|
jinja2
|
|
|
|
pyramid
|
2023-10-19 13:55:26 +00:00
|
|
|
zope-deprecation
|
2022-06-16 17:23:12 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-06-16 17:23:12 +00:00
|
|
|
webtest
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace " --cov" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pyramid_jinja2"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
disabledTests = [
|
|
|
|
# AssertionError: Lists differ: ['pyramid_jinja2-2.10',...
|
|
|
|
"test_it_relative_to_package"
|
|
|
|
# AssertionError: False is not true
|
|
|
|
"test_options"
|
|
|
|
];
|
2021-02-17 17:02:09 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Jinja2 template bindings for the Pyramid web framework";
|
|
|
|
homepage = "https://github.com/Pylons/pyramid_jinja2";
|
|
|
|
license = licenses.bsd0;
|
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
};
|
|
|
|
}
|