1{
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 format = "setuptools";
17
18 src = fetchPypi {
19 pname = "pyramid_chameleon";
20 inherit version;
21 hash = "sha256-0XZ5KlDrAV14ZbRL2bJKe9BIn6mlzrvRe54FBIzvkBc=";
22 };
23
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 ];
34
35 propagatedBuildInputs = [
36 chameleon
37 pyramid
38 setuptools
39 zope-interface
40 ];
41
42 nativeCheckInputs = [ pytestCheckHook ];
43
44 pythonImportsCheck = [ "pyramid_chameleon" ];
45
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; [ ];
51 };
52}