Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pyramid-chameleon / default.nix
blobab4f230afbdd8a5307d0f6de0b523bebc3a69bb3
1 { stdenv
2 , lib
3 , buildPythonPackage
4 , chameleon
5 , fetchpatch
6 , fetchPypi
7 , pyramid
8 , pytestCheckHook
9 , setuptools
10 , zope-interface
13 buildPythonPackage rec {
14   pname = "pyramid-chameleon";
15   version = "0.3";
16   format = "setuptools";
18   src = fetchPypi {
19     pname = "pyramid_chameleon";
20     inherit version;
21     hash = "sha256-0XZ5KlDrAV14ZbRL2bJKe9BIn6mlzrvRe54FBIzvkBc=";
22   };
24   patches = [
25     # https://github.com/Pylons/pyramid_chameleon/pull/25
26     ./test-renderers-pyramid-import.patch
27     # Compatibility with pyramid 2, https://github.com/Pylons/pyramid_chameleon/pull/34
28     (fetchpatch {
29       name = "support-later-limiter.patch";
30       url = "https://github.com/Pylons/pyramid_chameleon/commit/36348bf4c01f52c3461e7ba4d20b1edfc54dba50.patch";
31       hash = "sha256-cPS7JhcS8nkBS1T0OdZke25jvWHT0qkPFjyPUDKHBGU=";
32     })
33   ];
35   propagatedBuildInputs = [
36     chameleon
37     pyramid
38     setuptools
39     zope-interface
40   ];
42   nativeCheckInputs = [
43     pytestCheckHook
44   ];
46   pythonImportsCheck = [
47     "pyramid_chameleon"
48   ];
50   meta = with lib; {
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   };