ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pyramid_jinja2 / default.nix
blob8543a950a8cde72a4014b6c8974948fc0daf3d99
1 { stdenv
2 , lib
3 , buildPythonPackage
4 , fetchPypi
5 , webtest
6 , markupsafe
7 , jinja2
8 , pytestCheckHook
9 , zope_deprecation
10 , pyramid
11 , pythonOlder
14 buildPythonPackage rec {
15   pname = "pyramid-jinja2";
16   version = "2.10";
17   format = "setuptools";
19   disabled = pythonOlder "3.7";
21   src = fetchPypi {
22     pname = "pyramid_jinja2";
23     inherit version;
24     hash = "sha256-8nEGnZ6ay6x622kSGQqEj2M49+V6+68+lSN/6DzI9NI=";
25   };
27   propagatedBuildInputs = [
28     markupsafe
29     jinja2
30     pyramid
31     zope_deprecation
32   ];
34   checkInputs = [
35     webtest
36     pytestCheckHook
37   ];
39   postPatch = ''
40     substituteInPlace setup.cfg \
41       --replace " --cov" ""
42   '';
44   pythonImportsCheck = [
45     "pyramid_jinja2"
46   ];
48   disabledTests = [
49     # AssertionError: Lists differ: ['pyramid_jinja2-2.10',...
50     "test_it_relative_to_package"
51     # AssertionError: False is not true
52     "test_options"
53   ];
55   meta = with lib; {
56     broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
57     description = "Jinja2 template bindings for the Pyramid web framework";
58     homepage = "https://github.com/Pylons/pyramid_jinja2";
59     license = licenses.bsd0;
60     maintainers = with maintainers; [ domenkozar ];
61   };