Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, webtest 5, markupsafe 6, jinja2 7, pytestCheckHook 8, zope_deprecation 9, pyramid 10, pythonOlder 11}: 12 13buildPythonPackage rec { 14 pname = "pyramid-jinja2"; 15 version = "2.10"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchPypi { 21 pname = "pyramid_jinja2"; 22 inherit version; 23 hash = "sha256-8nEGnZ6ay6x622kSGQqEj2M49+V6+68+lSN/6DzI9NI="; 24 }; 25 26 propagatedBuildInputs = [ 27 markupsafe 28 jinja2 29 pyramid 30 zope_deprecation 31 ]; 32 33 nativeCheckInputs = [ 34 webtest 35 pytestCheckHook 36 ]; 37 38 postPatch = '' 39 substituteInPlace setup.cfg \ 40 --replace " --cov" "" 41 ''; 42 43 pythonImportsCheck = [ 44 "pyramid_jinja2" 45 ]; 46 47 disabledTests = [ 48 # AssertionError: Lists differ: ['pyramid_jinja2-2.10',... 49 "test_it_relative_to_package" 50 # AssertionError: False is not true 51 "test_options" 52 ]; 53 54 meta = with lib; { 55 description = "Jinja2 template bindings for the Pyramid web framework"; 56 homepage = "https://github.com/Pylons/pyramid_jinja2"; 57 license = licenses.bsd0; 58 maintainers = with maintainers; [ domenkozar ]; 59 }; 60}