2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, 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
|
|
|
|
, 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";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "2.10";
|
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;
|
|
|
|
hash = "sha256-8nEGnZ6ay6x622kSGQqEj2M49+V6+68+lSN/6DzI9NI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
markupsafe
|
|
|
|
jinja2
|
|
|
|
pyramid
|
|
|
|
zope_deprecation
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
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; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
|
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 ];
|
|
|
|
};
|
|
|
|
}
|