2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-10-16 20:44:37 +00:00
|
|
|
, isPyPy
|
2020-04-24 23:36:52 +00:00
|
|
|
, markupsafe
|
|
|
|
, mock
|
2020-10-16 20:44:37 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Mako";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "1.1.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-26 17:43:05 +00:00
|
|
|
sha256 = "4e9e345a41924a954251b95b4b28e14a301145b544901332e658907a7464b6b2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ markupsafe ];
|
2020-10-16 20:44:37 +00:00
|
|
|
checkInputs = [ pytestCheckHook markupsafe mock ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-16 20:44:37 +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"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-16 20:44:37 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Super-fast templating language";
|
2020-10-16 20:44:37 +00: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 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|