ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pyramid_chameleon / default.nix
blob87ccc32a3aa8aa5ea8d9c9124807ac54d402ef2c
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";
17   src = fetchPypi {
18     pname = "pyramid_chameleon";
19     inherit version;
20     sha256 = "sha256-0XZ5KlDrAV14ZbRL2bJKe9BIn6mlzrvRe54FBIzvkBc=";
21   };
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       sha256 = "sha256-cPS7JhcS8nkBS1T0OdZke25jvWHT0qkPFjyPUDKHBGU=";
31     })
32   ];
34   propagatedBuildInputs = [
35     chameleon
36     pyramid
37     setuptools
38     zope_interface
39   ];
41   checkInputs = [
42     pytestCheckHook
43   ];
45   pythonImportsCheck = [
46     "pyramid_chameleon"
47   ];
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   };