python3Packages.python-jenkins: 1.3.0 -> 1.4.0

Updates to the most recent version of `python-jenkins`. It was
originally broken during the auto-update in b4588c6a0f.

The tests could be run by using `unittest2` and some dependencies for
the test framwork.
This commit is contained in:
Maximilian Bosch 2019-02-06 14:58:49 +01:00 committed by worldofpeace
parent 5704496953
commit 895f9d3b73

View File

@ -1,4 +1,4 @@
{ stdenv { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, python , python
@ -11,28 +11,33 @@
, testscenarios , testscenarios
, testrepository , testrepository
, kerberos , kerberos
, requests
, unittest2
, requests-mock
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "python-jenkins"; pname = "python-jenkins";
version = "1.3.0"; version = "1.4.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "b44b3c8e0dabed371a1a8a301cc8833c635625faf003fd68c176800c71a6597c"; sha256 = "1h14hfcwichmppbgxf1k8njw29hchpav1kj574b4lly3j0n2vnag";
}; };
patchPhase = '' buildInputs = [ mock ];
sed -i 's@python@${python.interpreter}@' .testr.conf propagatedBuildInputs = [ pbr pyyaml six multi_key_dict requests ];
checkInputs = [ unittest2 testscenarios requests-mock ];
checkPhase = ''
unit2
''; '';
buildInputs = [ mock ]; meta = with lib; {
propagatedBuildInputs = [ pbr pyyaml six multi_key_dict testtools testscenarios testrepository kerberos ];
meta = with stdenv.lib; {
description = "Python bindings for the remote Jenkins API"; description = "Python bindings for the remote Jenkins API";
homepage = https://pypi.python.org/pypi/python-jenkins; homepage = https://pypi.python.org/pypi/python-jenkins;
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ ma27 ];
}; };
} }