1{ stdenv
2, lib
3, buildPythonPackage
4, fetchPypi
5, webtest
6, markupsafe
7, jinja2
8, pytestCheckHook
9, zope_deprecation
10, pyramid
11, pythonOlder
12}:
13
14buildPythonPackage rec {
15 pname = "pyramid-jinja2";
16 version = "2.10";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 pname = "pyramid_jinja2";
23 inherit version;
24 hash = "sha256-8nEGnZ6ay6x622kSGQqEj2M49+V6+68+lSN/6DzI9NI=";
25 };
26
27 propagatedBuildInputs = [
28 markupsafe
29 jinja2
30 pyramid
31 zope_deprecation
32 ];
33
34 nativeCheckInputs = [
35 webtest
36 pytestCheckHook
37 ];
38
39 postPatch = ''
40 substituteInPlace setup.cfg \
41 --replace " --cov" ""
42 '';
43
44 pythonImportsCheck = [
45 "pyramid_jinja2"
46 ];
47
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 ];
54
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 };
62}