pythonPackages.Mako: convert to pytestCheckHook

* Expands testing by disabling only known failing tests on pypy.
* Update issue links to GitHub repo.
This commit is contained in:
Drew Risinger 2020-09-20 16:27:14 -04:00 committed by Jon
parent 7a8fd8de93
commit c24b9331e0

View file

@ -1,11 +1,10 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, python
, markupsafe
, nose
, mock
, isPyPy , isPyPy
, markupsafe
, mock
, pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -17,13 +16,18 @@ buildPythonPackage rec {
sha256 = "8195c8c1400ceb53496064314c6736719c6f25e7479cd24c77be3d9361cddc27"; sha256 = "8195c8c1400ceb53496064314c6736719c6f25e7479cd24c77be3d9361cddc27";
}; };
checkInputs = [ markupsafe nose mock ];
propagatedBuildInputs = [ markupsafe ]; propagatedBuildInputs = [ markupsafe ];
checkInputs = [ pytestCheckHook markupsafe mock ];
doCheck = !isPyPy; # https://bitbucket.org/zzzeek/mako/issue/238/2-tests-failed-on-pypy-24-25 disabledTests = lib.optionals isPyPy [
checkPhase = '' # https://github.com/sqlalchemy/mako/issues/315
${python.interpreter} -m unittest discover "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; { meta = with lib; {
description = "Super-fast templating language"; description = "Super-fast templating language";