pythonPackages.python-jenkins: refactor move to python-modules
This commit is contained in:
parent
6d9a7397f1
commit
4e3de5d2c1
38
pkgs/development/python-modules/python-jenkins/default.nix
Normal file
38
pkgs/development/python-modules/python-jenkins/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -3180,27 +3180,7 @@ in {
|
|||||||
|
|
||||||
python3pika = callPackage ../development/python-modules/python3pika { };
|
python3pika = callPackage ../development/python-modules/python3pika { };
|
||||||
|
|
||||||
python-jenkins = buildPythonPackage rec {
|
python-jenkins = callPackage ../development/python-modules/python-jenkins { };
|
||||||
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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pystringtemplate = callPackage ../development/python-modules/stringtemplate { };
|
pystringtemplate = callPackage ../development/python-modules/stringtemplate { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user