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