1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, pip
5, pbr
6, mock
7, python-jenkins
8, pyyaml
9, six
10, stevedore
11, isPy27
12, fasteners
13, jinja2
14}:
15
16buildPythonPackage rec {
17 pname = "jenkins-job-builder";
18 version = "2.9.1";
19 disabled = !isPy27;
20
21 src = fetchPypi {
22 inherit pname version;
23 sha256 = "fba5f3efe8bd06d559f06a5d3bd68da5a7395541fcd370053a8174d08519e3d0";
24 };
25
26 postPatch = ''
27 export HOME=$TMPDIR
28 '';
29
30 propagatedBuildInputs = [ pbr mock python-jenkins pyyaml six stevedore fasteners jinja2 ];
31
32 # Need to fix test deps
33 doCheck = false;
34
35 meta = with stdenv.lib; {
36 description = "Jenkins Job Builder is a system for configuring Jenkins jobs using simple YAML files stored in Git";
37 homepage = "https://docs.openstack.org/infra/system-config/jjb.html";
38 license = licenses.asl20;
39 maintainers = with maintainers; [ garbas ];
40 };
41
42}