From 8b8155facc22b8c76fabe1d4f060eeabfe5ae832 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 29 Oct 2018 13:57:00 -0400 Subject: [PATCH] pythonPackages.jenkins-job-builder: refactor move to python-modules --- .../jenkins-job-builder/default.nix | 38 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 34 +---------------- 2 files changed, 39 insertions(+), 33 deletions(-) create mode 100644 pkgs/development/python-modules/jenkins-job-builder/default.nix diff --git a/pkgs/development/python-modules/jenkins-job-builder/default.nix b/pkgs/development/python-modules/jenkins-job-builder/default.nix new file mode 100644 index 000000000000..ac654498ac4a --- /dev/null +++ b/pkgs/development/python-modules/jenkins-job-builder/default.nix @@ -0,0 +1,38 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, pip +, pbr +, mock +, python-jenkins +, pyyaml +, six +, stevedore +, isPy27 +}: + +buildPythonPackage rec { + pname = "jenkins-job-builder"; + version = "2.0.0.0b2"; + disabled = !isPy27; + + src = fetchPypi { + inherit pname version; + sha256 = "1y0yl2w6c9c91f9xbjkvff1ag8p72r24nzparrzrw9sl8kn9632x"; + }; + + patchPhase = '' + export HOME=$TMPDIR + ''; + + buildInputs = [ pip ]; + propagatedBuildInputs = [ pbr mock python-jenkins pyyaml six stevedore ]; + + meta = with stdenv.lib; { + description = "Jenkins Job Builder is a system for configuring Jenkins jobs using simple YAML files stored in Git"; + homepage = "https://docs.openstack.org/infra/system-config/jjb.html"; + license = licenses.asl20; + maintainers = with maintainers; [ garbas ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 613852d406d7..2d0744c996b8 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4447,39 +4447,7 @@ in { jenkinsapi = callPackage ../development/python-modules/jenkinsapi { }; - jenkins-job-builder = buildPythonPackage rec { - name = "jenkins-job-builder-2.0.0.0b2"; - disabled = !isPy27; - - src = pkgs.fetchurl { - url = "mirror://pypi/j/jenkins-job-builder/${name}.tar.gz"; - sha256 = "1y0yl2w6c9c91f9xbjkvff1ag8p72r24nzparrzrw9sl8kn9632x"; - }; - - patchPhase = '' - export HOME=$TMPDIR - ''; - - buildInputs = with self; [ - pip - ]; - - propagatedBuildInputs = with self; [ - pbr - mock - python-jenkins - pyyaml - six - stevedore - ]; - - meta = { - description = "Jenkins Job Builder is a system for configuring Jenkins jobs using simple YAML files stored in Git"; - homepage = "https://docs.openstack.org/infra/system-config/jjb.html"; - license = licenses.asl20; - maintainers = with maintainers; [ garbas ]; - }; - }; + jenkins-job-builder = callPackage ../development/python-modules/jenkins-job-builder { }; dot2tex = buildPythonPackage rec { name = "dot2tex-2.9.0";