1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 fetchpatch,
6 webtest,
7 pyramid,
8 mako,
9}:
10
11buildPythonPackage rec {
12 pname = "pyramid-mako";
13 version = "1.1.0";
14 format = "setuptools";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "0066c863441f1c3ddea60cee1ccc50d00a91a317a8052ca44131da1a12a840e2";
19 };
20
21 patches = [
22 # Fix tests with pyramid >= 2.0
23 # https://github.com/Pylons/pyramid_mako/pull/54
24 (fetchpatch {
25 url = "https://github.com/Pylons/pyramid_mako/commit/c0f9e7e0146a7f94e35a9401b1519ac8b7765f5b.patch";
26 sha256 = "15swfm0a07bdl32s85426rmjh72jwfasjcrl849ppg035z75q9fx";
27 })
28 ];
29
30 buildInputs = [ webtest ];
31 propagatedBuildInputs = [
32 pyramid
33 mako
34 ];
35
36 meta = with lib; {
37 homepage = "https://github.com/Pylons/pyramid_mako";
38 description = "Mako template bindings for the Pyramid web framework";
39 license = licenses.bsd0;
40 maintainers = [ ];
41 };
42}