2022-05-29 10:10:09 +01:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2018-10-16 16:15:47 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, webtest
|
2022-05-30 22:35:38 +01:00
|
|
|
, markupsafe
|
2018-10-16 16:15:47 +01:00
|
|
|
, jinja2
|
2022-05-30 22:35:38 +01:00
|
|
|
, pytestCheckHook
|
|
|
|
, zope_deprecation
|
2018-10-16 16:15:47 +01:00
|
|
|
, pyramid
|
2022-05-30 22:35:38 +01:00
|
|
|
, pythonOlder
|
2018-10-16 16:15:47 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-05-30 22:35:38 +01:00
|
|
|
pname = "pyramid-jinja2";
|
2022-03-31 00:05:15 +01:00
|
|
|
version = "2.10";
|
2022-05-30 22:35:38 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2018-10-16 16:15:47 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-05-30 22:35:38 +01:00
|
|
|
pname = "pyramid_jinja2";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-8nEGnZ6ay6x622kSGQqEj2M49+V6+68+lSN/6DzI9NI=";
|
2018-10-16 16:15:47 +01:00
|
|
|
};
|
|
|
|
|
2022-05-30 22:35:38 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
markupsafe
|
|
|
|
jinja2
|
|
|
|
pyramid
|
|
|
|
zope_deprecation
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
webtest
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace " --cov" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pyramid_jinja2"
|
|
|
|
];
|
2018-10-16 16:15:47 +01:00
|
|
|
|
2022-05-30 22:35:38 +01:00
|
|
|
disabledTests = [
|
|
|
|
# AssertionError: Lists differ: ['pyramid_jinja2-2.10',...
|
|
|
|
"test_it_relative_to_package"
|
|
|
|
# AssertionError: False is not true
|
|
|
|
"test_options"
|
|
|
|
];
|
2021-02-16 22:21:30 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-05-29 21:45:48 +01:00
|
|
|
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
|
2018-10-16 16:15:47 +01:00
|
|
|
description = "Jinja2 template bindings for the Pyramid web framework";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/Pylons/pyramid_jinja2";
|
2018-10-16 16:15:47 +01:00
|
|
|
license = licenses.bsd0;
|
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
};
|
|
|
|
}
|