2019-09-30 14:30:36 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27
|
|
|
|
, fasteners
|
|
|
|
, jinja2
|
2018-10-29 17:57:00 +00:00
|
|
|
, pbr
|
|
|
|
, python-jenkins
|
|
|
|
, pyyaml
|
|
|
|
, six
|
|
|
|
, stevedore
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jenkins-job-builder";
|
2019-11-29 03:50:28 +00:00
|
|
|
version = "3.1.0";
|
2018-10-29 17:57:00 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-11-29 03:50:28 +00:00
|
|
|
sha256 = "1wcmn01md6hykblk5zz8wd5zizyisspspakz446jg2kqfv4y3q03";
|
2018-10-29 17:57:00 +00:00
|
|
|
};
|
|
|
|
|
2019-02-14 07:37:18 +00:00
|
|
|
postPatch = ''
|
2018-10-29 17:57:00 +00:00
|
|
|
export HOME=$TMPDIR
|
|
|
|
'';
|
|
|
|
|
2019-09-30 14:30:36 +01:00
|
|
|
propagatedBuildInputs = [ pbr python-jenkins pyyaml six stevedore fasteners jinja2 ];
|
2019-02-14 07:37:18 +00:00
|
|
|
|
2019-09-30 14:30:36 +01:00
|
|
|
# Need to fix test deps, relies on stestr and a few other packages that aren't available on nixpkgs
|
|
|
|
checkPhase = ''$out/bin/jenkins-jobs --help'';
|
2018-10-29 17:57:00 +00:00
|
|
|
|
2019-09-30 14:30:36 +01:00
|
|
|
meta = with lib; {
|
2018-10-29 17:57:00 +00:00
|
|
|
description = "Jenkins Job Builder is a system for configuring Jenkins jobs using simple YAML files stored in Git";
|
2019-12-08 16:50:31 +00:00
|
|
|
homepage = "https://docs.openstack.org/infra/jenkins-job-builder/";
|
2018-10-29 17:57:00 +00:00
|
|
|
license = licenses.asl20;
|
2019-07-03 10:27:39 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-10-29 17:57:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|