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