Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, lib 3, buildPythonPackage 4, chameleon 5, fetchpatch 6, fetchPypi 7, pyramid 8, pytestCheckHook 9, setuptools 10, zope_interface 11}: 12 13buildPythonPackage rec { 14 pname = "pyramid-chameleon"; 15 version = "0.3"; 16 17 src = fetchPypi { 18 pname = "pyramid_chameleon"; 19 inherit version; 20 hash = "sha256-0XZ5KlDrAV14ZbRL2bJKe9BIn6mlzrvRe54FBIzvkBc="; 21 }; 22 23 patches = [ 24 # https://github.com/Pylons/pyramid_chameleon/pull/25 25 ./test-renderers-pyramid-import.patch 26 # Compatibility with pyramid 2, https://github.com/Pylons/pyramid_chameleon/pull/34 27 (fetchpatch { 28 name = "support-later-limiter.patch"; 29 url = "https://github.com/Pylons/pyramid_chameleon/commit/36348bf4c01f52c3461e7ba4d20b1edfc54dba50.patch"; 30 hash = "sha256-cPS7JhcS8nkBS1T0OdZke25jvWHT0qkPFjyPUDKHBGU="; 31 }) 32 ]; 33 34 propagatedBuildInputs = [ 35 chameleon 36 pyramid 37 setuptools 38 zope_interface 39 ]; 40 41 nativeCheckInputs = [ 42 pytestCheckHook 43 ]; 44 45 pythonImportsCheck = [ 46 "pyramid_chameleon" 47 ]; 48 49 meta = with lib; { 50 broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin; 51 description = "Chameleon template compiler for pyramid"; 52 homepage = "https://github.com/Pylons/pyramid_chameleon"; 53 license = licenses.bsd0; 54 maintainers = with maintainers; [ domenkozar ]; 55 }; 56}