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

41 lines
989 B
Nix
Raw Normal View History

2017-12-31 10:44:52 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, isPyPy
2017-12-31 10:44:52 +00:00
, markupsafe
, mock
, pytestCheckHook
2017-12-31 10:44:52 +00:00
}:
buildPythonPackage rec {
pname = "Mako";
2020-06-05 17:44:32 +00:00
version = "1.1.3";
2017-12-31 10:44:52 +00:00
src = fetchPypi {
inherit pname version;
2020-06-05 17:44:32 +00:00
sha256 = "8195c8c1400ceb53496064314c6736719c6f25e7479cd24c77be3d9361cddc27";
2017-12-31 10:44:52 +00:00
};
propagatedBuildInputs = [ markupsafe ];
checkInputs = [ pytestCheckHook markupsafe mock ];
2017-12-31 10:44:52 +00:00
disabledTests = lib.optionals isPyPy [
# https://github.com/sqlalchemy/mako/issues/315
"test_alternating_file_names"
# https://github.com/sqlalchemy/mako/issues/238
"test_file_success"
"test_stdin_success"
# fails on pypy2.7
"test_bytestring_passthru"
];
2017-12-31 10:44:52 +00:00
meta = with lib; {
2017-12-31 10:44:52 +00:00
description = "Super-fast templating language";
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 10:44:52 +00:00
};
}