1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 fasteners,
6 jinja2,
7 pbr,
8 python-jenkins,
9 pyyaml,
10 six,
11 stevedore,
12}:
13
14buildPythonPackage rec {
15 pname = "jenkins-job-builder";
16 version = "6.3.0";
17 format = "setuptools";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-RD9VQFlwLJ3TiReKty+q056CjsOnSD2J2bpASmqHIEM=";
22 };
23
24 postPatch = ''
25 export HOME=$(mktemp -d)
26 '';
27
28 propagatedBuildInputs = [
29 pbr
30 python-jenkins
31 pyyaml
32 six
33 stevedore
34 fasteners
35 jinja2
36 ];
37
38 # Need to fix test deps, relies on stestr and a few other packages that aren't available on nixpkgs
39 checkPhase = "$out/bin/jenkins-jobs --help";
40
41 meta = with lib; {
42 description = "Jenkins Job Builder is a system for configuring Jenkins jobs using simple YAML files stored in Git";
43 mainProgram = "jenkins-jobs";
44 homepage = "https://jenkins-job-builder.readthedocs.io/en/latest/";
45 license = licenses.asl20;
46 maintainers = with maintainers; [ ];
47 };
48}