3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #145792 from risicle/ris-python-jenkins-darwin

python3Packages.python-jenkins: skip test failing on darwin
This commit is contained in:
Jörg Thalheim 2021-11-13 22:54:46 +00:00 committed by GitHub
commit bb0e36309e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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