anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / pyramid-chameleon / default.nix
blobdadd0e534a3ffcb29531007c1345a78c66502c53
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 = [ pytestCheckHook ];
44   pythonImportsCheck = [ "pyramid_chameleon" ];
46   meta = with lib; {
47     description = "Chameleon template compiler for pyramid";
48     homepage = "https://github.com/Pylons/pyramid_chameleon";
49     license = licenses.bsd0;
50     maintainers = with maintainers; [ domenkozar ];
51   };