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";
|
2020-11-29 14:04:31 +00:00
|
|
|
version = "3.7.0";
|
2018-10-29 17:57:00 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:31 +00:00
|
|
|
sha256 = "bca1f458206fc8be82d790685b603d4158e2034a651f2e148e31526984b9d551";
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|