pythonPackages.jenkinsapi: refactor move to python-modules

wip/yesman
Chris Ostrouchov 6 years ago
parent 15b5f85a96
commit dae0571bc3
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
  1. 31
      pkgs/development/python-modules/jenkinsapi/default.nix
  2. 21
      pkgs/top-level/python-packages.nix

@ -0,0 +1,31 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pytz
, requests
, coverage
, mock
, nose
, unittest2
}:
buildPythonPackage rec {
pname = "jenkinsapi";
version = "0.2.32";
src = fetchPypi {
inherit pname version;
sha256 = "0fcc78b8dfc87237942aad2a8be54dbc08bc4afceaa7f6897f3d894e7d4bfd22";
};
propagatedBuildInputs = [ pytz requests ];
buildInputs = [ coverage mock nose unittest2 ];
meta = with stdenv.lib; {
description = "A Python API for accessing resources on a Jenkins continuous-integration server";
homepage = https://github.com/salimfadhley/jenkinsapi;
maintainers = with maintainers; [ drets ];
license = licenses.mit;
};
}

@ -4445,26 +4445,7 @@ in {
torchvision = callPackage ../development/python-modules/torchvision { };
jenkinsapi = buildPythonPackage rec {
name = "jenkinsapi-${version}";
version = "0.2.32";
src = pkgs.fetchurl {
url = "mirror://pypi/j/jenkinsapi/${name}.tar.gz";
sha256 = "0fcc78b8dfc87237942aad2a8be54dbc08bc4afceaa7f6897f3d894e7d4bfd22";
};
propagatedBuildInputs = with self; [ pytz requests ];
buildInputs = with self; [ coverage mock nose unittest2 ];
meta = {
description = "A Python API for accessing resources on a Jenkins continuous-integration server";
homepage = https://github.com/salimfadhley/jenkinsapi;
maintainers = with maintainers; [ drets ];
license = licenses.mit;
};
};
jenkinsapi = callPackage ../development/python-modules/jenkinsapi { };
jenkins-job-builder = buildPythonPackage rec {
name = "jenkins-job-builder-2.0.0.0b2";

Loading…
Cancel
Save