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

41 lines
989 B
Nix
Raw Normal View History

2017-12-31 11:44:52 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, isPyPy
2017-12-31 11:44:52 +01:00
, markupsafe
, mock
, pytestCheckHook
2017-12-31 11:44:52 +01:00
}:
buildPythonPackage rec {
pname = "Mako";
2021-08-26 21:32:38 +02:00
version = "1.1.5";
2017-12-31 11:44:52 +01:00
src = fetchPypi {
inherit pname version;
2021-08-26 21:32:38 +02:00
sha256 = "169fa52af22a91900d852e937400e79f535496191c63712e3b9fda5a9bed6fc3";
2017-12-31 11:44:52 +01:00
};
propagatedBuildInputs = [ markupsafe ];
checkInputs = [ pytestCheckHook markupsafe mock ];
2017-12-31 11:44:52 +01: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 11:44:52 +01:00
meta = with lib; {
2017-12-31 11:44:52 +01: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 11:44:52 +01:00
};
}