diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2020-07-31 10:50:08 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2020-08-04 21:54:26 +0200 |
commit | 40cede42ac2f700c7e522037dc239ceefaabb8f6 (patch) | |
tree | de69f87728ed82f7e2329989b42c512a2f5125e3 /pkgs/development/python-modules | |
parent | 8e5e7e2ad82a9432970fca6d066c5ce11bb19b8a (diff) |
python2.pkgs.werkzeug: disable tests
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/werkzeug/default.nix | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/werkzeug/default.nix b/pkgs/development/python-modules/werkzeug/default.nix index c3778609e576d..a4146d4d3b12c 100644 --- a/pkgs/development/python-modules/werkzeug/default.nix +++ b/pkgs/development/python-modules/werkzeug/default.nix @@ -1,7 +1,8 @@ { stdenv, buildPythonPackage, fetchPypi , itsdangerous, hypothesis -, pytest, requests +, pytestCheckHook, requests , pytest-timeout +, isPy3k }: buildPythonPackage rec { @@ -14,11 +15,14 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ itsdangerous ]; - checkInputs = [ pytest requests hypothesis pytest-timeout ]; + checkInputs = [ pytestCheckHook requests hypothesis pytest-timeout ]; - checkPhase = '' - pytest ${stdenv.lib.optionalString stdenv.isDarwin "-k 'not test_get_machine_id'"} - ''; + disabledTests = stdenv.lib.optionals stdenv.isDarwin [ + "test_get_machine_id" + ]; + + # Python 2 pytest fails with INTERNALERROR due to a deprecation warning. + doCheck = isPy3k; meta = with stdenv.lib; { homepage = "https://palletsprojects.com/p/werkzeug/"; |