2017-12-31 02:44:52 -08:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-10-24 21:27:15 -07:00
|
|
|
, python
|
2017-12-31 02:44:52 -08:00
|
|
|
, markupsafe
|
|
|
|
, nose
|
|
|
|
, mock
|
|
|
|
, isPyPy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Mako";
|
2020-06-05 10:44:32 -07:00
|
|
|
version = "1.1.3";
|
2017-12-31 02:44:52 -08:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-05 10:44:32 -07:00
|
|
|
sha256 = "8195c8c1400ceb53496064314c6736719c6f25e7479cd24c77be3d9361cddc27";
|
2017-12-31 02:44:52 -08:00
|
|
|
};
|
|
|
|
|
2019-10-24 21:27:15 -07:00
|
|
|
checkInputs = [ markupsafe nose mock ];
|
2017-12-31 02:44:52 -08:00
|
|
|
propagatedBuildInputs = [ markupsafe ];
|
|
|
|
|
|
|
|
doCheck = !isPyPy; # https://bitbucket.org/zzzeek/mako/issue/238/2-tests-failed-on-pypy-24-25
|
2019-10-24 21:27:15 -07:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest discover
|
|
|
|
'';
|
2017-12-31 02:44:52 -08:00
|
|
|
|
2020-09-20 13:26:12 -07:00
|
|
|
meta = with lib; {
|
2017-12-31 02:44:52 -08:00
|
|
|
description = "Super-fast templating language";
|
2020-09-20 13:26:12 -07:00
|
|
|
homepage = "https://www.makotemplates.org/";
|
|
|
|
changelog = "https://docs.makotemplates.org/en/latest/changelog.html";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
2017-12-31 02:44:52 -08:00
|
|
|
};
|
2019-02-14 05:00:20 -08:00
|
|
|
}
|