1{
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.1";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 pname = "pyramid_jinja2";
23 inherit version;
24 hash = "sha256-jFCMs1wTX5UUnKI2EQ+ciHU0NXV0DRbFy3OlDvHCFnc=";
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 = [ "pyramid_jinja2" ];
45
46 disabledTests = [
47 # AssertionError: Lists differ: ['pyramid_jinja2-2.10',...
48 "test_it_relative_to_package"
49 # AssertionError: False is not true
50 "test_options"
51 ];
52
53 meta = with lib; {
54 description = "Jinja2 template bindings for the Pyramid web framework";
55 homepage = "https://github.com/Pylons/pyramid_jinja2";
56 license = licenses.bsd0;
57 maintainers = with maintainers; [ domenkozar ];
58 };
59}