1{ lib, buildPythonPackage, fetchPypi, fasteners
2, jinja2
3, pbr
4, python-jenkins
5, pyyaml
6, six
7, stevedore
8}:
9
10buildPythonPackage rec {
11 pname = "jenkins-job-builder";
12 version = "4.3.0";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-pvka8TLMEclzJ2Iw4iLSiR1ioV3frzQStLu21+kSSHI=";
17 };
18
19 postPatch = ''
20 # relax version constraint, https://storyboard.openstack.org/#!/story/2009723
21 substituteInPlace requirements.txt --replace 'PyYAML>=3.10.0,<6' 'PyYAML>=3.10.0'
22
23 export HOME=$TMPDIR
24 '';
25
26 propagatedBuildInputs = [ pbr python-jenkins pyyaml six stevedore fasteners jinja2 ];
27
28 # Need to fix test deps, relies on stestr and a few other packages that aren't available on nixpkgs
29 checkPhase = "$out/bin/jenkins-jobs --help";
30
31 meta = with lib; {
32 description = "Jenkins Job Builder is a system for configuring Jenkins jobs using simple YAML files stored in Git";
33 homepage = "https://docs.openstack.org/infra/jenkins-job-builder/";
34 license = licenses.asl20;
35 maintainers = with maintainers; [ ];
36 };
37
38}