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";
2021-02-20 09:09:11 +00:00
version = "1.1.4";
2017-12-31 10:44:52 +00:00
src = fetchPypi {
inherit pname version;
2021-02-20 09:09:11 +00:00
sha256 = "17831f0b7087c313c0ffae2bcbbd3c1d5ba9eeac9c38f2eb7b50e8c99fe9d5ab";
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
};
}