33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, mock
|
|
, pbr
|
|
, pyyaml
|
|
, setuptools
|
|
, six
|
|
, multi_key_dict
|
|
, testscenarios
|
|
, requests
|
|
, requests-mock
|
|
, stestr
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-jenkins";
|
|
version = "1.7.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
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 ];
|
|
propagatedBuildInputs = [ pbr pyyaml setuptools six multi_key_dict requests ];
|
|
|
|
nativeCheckInputs = [ stestr testscenarios requests-mock ];
|
|
checkPhase = ''
|
|
stestr run
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Python bindings for the remote Jenkins API";
|
|
homepage = "https://pypi.python.org/pypi/python-jenkins";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ gador ];
|
|
};
|
|
|
|
}
|