python2.pkgs.werkzeug: disable tests
This commit is contained in:
parent
8e5e7e2ad8
commit
40cede42ac
@ -1,7 +1,8 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi
|
{ stdenv, buildPythonPackage, fetchPypi
|
||||||
, itsdangerous, hypothesis
|
, itsdangerous, hypothesis
|
||||||
, pytest, requests
|
, pytestCheckHook, requests
|
||||||
, pytest-timeout
|
, pytest-timeout
|
||||||
|
, isPy3k
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -14,11 +15,14 @@ buildPythonPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ itsdangerous ];
|
propagatedBuildInputs = [ itsdangerous ];
|
||||||
checkInputs = [ pytest requests hypothesis pytest-timeout ];
|
checkInputs = [ pytestCheckHook requests hypothesis pytest-timeout ];
|
||||||
|
|
||||||
checkPhase = ''
|
disabledTests = stdenv.lib.optionals stdenv.isDarwin [
|
||||||
pytest ${stdenv.lib.optionalString stdenv.isDarwin "-k 'not test_get_machine_id'"}
|
"test_get_machine_id"
|
||||||
'';
|
];
|
||||||
|
|
||||||
|
# Python 2 pytest fails with INTERNALERROR due to a deprecation warning.
|
||||||
|
doCheck = isPy3k;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "https://palletsprojects.com/p/werkzeug/";
|
homepage = "https://palletsprojects.com/p/werkzeug/";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user