nixpkgs/pkgs/development/python-modules/Mako/default.nix

36 lines
780 B
Nix
Raw Normal View History

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";
2019-10-24 07:47:23 +01:00
version = "1.1.0";
2017-12-31 10:44:52 +00:00
src = fetchPypi {
inherit pname version;
2019-10-24 07:47:23 +01:00
sha256 = "a36919599a9b7dc5d86a7a8988f23a9a3a3d083070023bab23d64f7f1d1e0a4b";
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";
homepage = http://www.makotemplates.org;
license = lib.licenses.mit;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ domenkozar ];
};
}