2017-12-31 11:44:52 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-09-20 22:27:14 +02:00
|
|
|
, isPyPy
|
2017-12-31 11:44:52 +01:00
|
|
|
, markupsafe
|
|
|
|
, mock
|
2020-09-20 22:27:14 +02:00
|
|
|
, pytestCheckHook
|
2017-12-31 11:44:52 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Mako";
|
2020-06-05 19:44:32 +02:00
|
|
|
version = "1.1.3";
|
2017-12-31 11:44:52 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-05 19:44:32 +02:00
|
|
|
sha256 = "8195c8c1400ceb53496064314c6736719c6f25e7479cd24c77be3d9361cddc27";
|
2017-12-31 11:44:52 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ markupsafe ];
|
2020-09-20 22:27:14 +02:00
|
|
|
checkInputs = [ pytestCheckHook markupsafe mock ];
|
2017-12-31 11:44:52 +01:00
|
|
|
|
2020-09-20 22:27:14 +02: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
|
|
|
|
2020-09-20 22:26:12 +02:00
|
|
|
meta = with lib; {
|
2017-12-31 11:44:52 +01:00
|
|
|
description = "Super-fast templating language";
|
2020-09-20 22:26:12 +02: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 ];
|
2017-12-31 11:44:52 +01:00
|
|
|
};
|
2019-02-14 14:00:20 +01:00
|
|
|
}
|