nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, python
5, markupsafe
6, nose
7, mock
8, isPyPy
9}:
10
11buildPythonPackage rec {
12 pname = "Mako";
13 version = "1.1.1";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "2984a6733e1d472796ceef37ad48c26f4a984bb18119bb2dbc37a44d8f6e75a4";
18 };
19
20 checkInputs = [ markupsafe nose mock ];
21 propagatedBuildInputs = [ markupsafe ];
22
23 doCheck = !isPyPy; # https://bitbucket.org/zzzeek/mako/issue/238/2-tests-failed-on-pypy-24-25
24 checkPhase = ''
25 ${python.interpreter} -m unittest discover
26 '';
27
28 meta = {
29 description = "Super-fast templating language";
30 homepage = http://www.makotemplates.org;
31 license = lib.licenses.mit;
32 platforms = lib.platforms.unix;
33 maintainers = with lib.maintainers; [ domenkozar ];
34 };
35}