2017-12-31 10:44:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-10-25 05:27:15 +01:00
|
|
|
, python
|
2017-12-31 10:44:52 +00:00
|
|
|
, markupsafe
|
|
|
|
, nose
|
|
|
|
, mock
|
|
|
|
, isPyPy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Mako";
|
2020-02-06 15:11:55 +00:00
|
|
|
version = "1.1.1";
|
2017-12-31 10:44:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-02-06 15:11:55 +00:00
|
|
|
sha256 = "2984a6733e1d472796ceef37ad48c26f4a984bb18119bb2dbc37a44d8f6e75a4";
|
2017-12-31 10:44:52 +00:00
|
|
|
};
|
|
|
|
|
2019-10-25 05:27:15 +01:00
|
|
|
checkInputs = [ markupsafe nose mock ];
|
2017-12-31 10:44:52 +00:00
|
|
|
propagatedBuildInputs = [ markupsafe ];
|
|
|
|
|
|
|
|
doCheck = !isPyPy; # https://bitbucket.org/zzzeek/mako/issue/238/2-tests-failed-on-pypy-24-25
|
2019-10-25 05:27:15 +01:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest discover
|
|
|
|
'';
|
2017-12-31 10:44:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Super-fast templating language";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.makotemplates.org";
|
2017-12-31 10:44:52 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = with lib.maintainers; [ domenkozar ];
|
|
|
|
};
|
2019-02-14 13:00:20 +00:00
|
|
|
}
|