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-01-07 08:48:35 +00:00
|
|
|
version = "3.2.0";
|
2018-10-29 17:57:00 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-01-07 08:48:35 +00:00
|
|
|
sha256 = "1njxww53d92cpgrqlr09w2n0pk6wamjcb0mvpns1mr2pn5hy1jhi";
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|