mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
Merge pull request #145792 from risicle/ris-python-jenkins-darwin
python3Packages.python-jenkins: skip test failing on darwin
This commit is contained in:
commit
bb0e36309e
@ -1,4 +1,5 @@
|
|||||||
{ lib
|
{ lib
|
||||||
|
, stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, mock
|
, mock
|
||||||
@ -22,6 +23,13 @@ buildPythonPackage rec {
|
|||||||
sha256 = "01jid5s09lr3kayr2h1z9n8h9nhyw3jxv9c4b5hrlxijknkqzvfy";
|
sha256 = "01jid5s09lr3kayr2h1z9n8h9nhyw3jxv9c4b5hrlxijknkqzvfy";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# test uses timeout mechanism unsafe for use with the "spawn"
|
||||||
|
# multiprocessing backend used on macos
|
||||||
|
postPatch = lib.optionalString stdenv.isDarwin ''
|
||||||
|
substituteInPlace tests/test_jenkins_sockets.py \
|
||||||
|
--replace test_jenkins_open_no_timeout dont_test_jenkins_open_no_timeout
|
||||||
|
'';
|
||||||
|
|
||||||
buildInputs = [ mock ];
|
buildInputs = [ mock ];
|
||||||
propagatedBuildInputs = [ pbr pyyaml setuptools six multi_key_dict requests ];
|
propagatedBuildInputs = [ pbr pyyaml setuptools six multi_key_dict requests ];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user