nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv
2, lib
3, buildPythonPackage
4, fetchPypi
5, chameleon
6, pyramid
7, zope_interface
8, setuptools
9}:
10
11buildPythonPackage rec {
12 pname = "pyramid_chameleon";
13 version = "0.3";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "d176792a50eb015d7865b44bd9b24a7bd0489fa9a5cebbd17b9e05048cef9017";
18 };
19
20 patches = [
21 # https://github.com/Pylons/pyramid_chameleon/pull/25
22 ./test-renderers-pyramid-import.patch
23 ];
24
25 propagatedBuildInputs = [ chameleon pyramid zope_interface setuptools ];
26
27 pythonImportsCheck = [ "pyramid_chameleon" ];
28
29 meta = with lib; {
30 broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
31 description = "Chameleon template compiler for pyramid";
32 homepage = "https://github.com/Pylons/pyramid_chameleon";
33 license = licenses.bsd0;
34 maintainers = with maintainers; [ domenkozar ];
35 };
36}