3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.python-jenkins: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-25 21:44:40 -04:00 committed by Frederik Rietdijk
parent 6d9a7397f1
commit 4e3de5d2c1
2 changed files with 39 additions and 21 deletions

View file

@ -0,0 +1,38 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, python
, mock
, pbr
, pyyaml
, six
, multi_key_dict
, testtools
, testscenarios
, testrepository
, kerberos
}:
buildPythonPackage rec {
pname = "python-jenkins";
version = "0.4.14";
src = fetchPypi {
inherit pname version;
sha256 = "1n8ikvd9jf4dlki7nqlwjlsn8wpsx4x7wg4h3d6bkvyvhwwf8yqf";
};
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;
};
}

View file

@ -3180,27 +3180,7 @@ in {
python3pika = callPackage ../development/python-modules/python3pika { };
python-jenkins = buildPythonPackage rec {
name = "python-jenkins-${version}";
version = "0.4.14";
src = pkgs.fetchurl {
url = "mirror://pypi/p/python-jenkins/${name}.tar.gz";
sha256 = "1n8ikvd9jf4dlki7nqlwjlsn8wpsx4x7wg4h3d6bkvyvhwwf8yqf";
};
patchPhase = ''
sed -i 's@python@${python.interpreter}@' .testr.conf
'';
buildInputs = with self; [ mock ];
propagatedBuildInputs = with self; [ pbr pyyaml six multi_key_dict testtools
testscenarios testrepository kerberos ];
meta = {
description = "Python bindings for the remote Jenkins API";
homepage = https://pypi.python.org/pypi/python-jenkins;
license = licenses.bsd3;
};
};
python-jenkins = callPackage ../development/python-modules/python-jenkins { };
pystringtemplate = callPackage ../development/python-modules/stringtemplate { };