nixpkgs/pkgs/development/python-modules/Mako/default.nix
Drew Risinger c24b9331e0 pythonPackages.Mako: convert to pytestCheckHook
* Expands testing by disabling only known failing tests on pypy.
* Update issue links to GitHub repo.
2020-09-22 09:06:39 -07:00

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 ];
};
}