mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
c24b9331e0
* Expands testing by disabling only known failing tests on pypy. * Update issue links to GitHub repo.
41 lines
989 B
Nix
41 lines
989 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPyPy
|
|
, markupsafe
|
|
, mock
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "Mako";
|
|
version = "1.1.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "8195c8c1400ceb53496064314c6736719c6f25e7479cd24c77be3d9361cddc27";
|
|
};
|
|
|
|
propagatedBuildInputs = [ markupsafe ];
|
|
checkInputs = [ pytestCheckHook markupsafe mock ];
|
|
|
|
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"
|
|
];
|
|
|
|
meta = with lib; {
|
|
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 ];
|
|
};
|
|
}
|