2018-10-26 02:44:40 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python
|
|
|
|
, mock
|
|
|
|
, pbr
|
|
|
|
, pyyaml
|
|
|
|
, six
|
|
|
|
, multi_key_dict
|
|
|
|
, testtools
|
|
|
|
, testscenarios
|
|
|
|
, testrepository
|
|
|
|
, kerberos
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-jenkins";
|
2018-11-04 10:35:14 +00:00
|
|
|
version = "1.3.0";
|
2018-10-26 02:44:40 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:35:14 +00:00
|
|
|
sha256 = "b44b3c8e0dabed371a1a8a301cc8833c635625faf003fd68c176800c71a6597c";
|
2018-10-26 02:44:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i 's@python@${python.interpreter}@' .testr.conf
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ mock ];
|
|
|
|
propagatedBuildInputs = [ pbr pyyaml six multi_key_dict testtools testscenarios testrepository kerberos ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python bindings for the remote Jenkins API";
|
|
|
|
homepage = https://pypi.python.org/pypi/python-jenkins;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|