about summary refs log tree commit diff
path: root/pkgs/development/python-modules/python-jenkins
diff options
context:
space:
mode:
authorChris Ostrouchov <chris.ostrouchov@gmail.com>2018-10-25 21:44:40 -0400
committerFrederik Rietdijk <fridh@fridh.nl>2018-10-27 09:07:19 +0200
commit4e3de5d2c15ea42a92d3604298b486ae51125e30 (patch)
tree06afaad1f9bf1b21adc8e8c3d12c3124249c209b /pkgs/development/python-modules/python-jenkins
parent6d9a7397f1f07de220c7fde059c976280d313049 (diff)
downloadnixlib-4e3de5d2c15ea42a92d3604298b486ae51125e30.tar
nixlib-4e3de5d2c15ea42a92d3604298b486ae51125e30.tar.gz
nixlib-4e3de5d2c15ea42a92d3604298b486ae51125e30.tar.bz2
nixlib-4e3de5d2c15ea42a92d3604298b486ae51125e30.tar.lz
nixlib-4e3de5d2c15ea42a92d3604298b486ae51125e30.tar.xz
nixlib-4e3de5d2c15ea42a92d3604298b486ae51125e30.tar.zst
nixlib-4e3de5d2c15ea42a92d3604298b486ae51125e30.zip
pythonPackages.python-jenkins: refactor move to python-modules
Diffstat (limited to 'pkgs/development/python-modules/python-jenkins')
-rw-r--r--pkgs/development/python-modules/python-jenkins/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-jenkins/default.nix b/pkgs/development/python-modules/python-jenkins/default.nix
new file mode 100644
index 000000000000..8509caa27944
--- /dev/null
+++ b/pkgs/development/python-modules/python-jenkins/default.nix
@@ -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;
+  };
+
+}