nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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 = "3.10.0";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "sha256-8MP8YHIkxDqjPsUYv6ROmuRwcGMzPpsVCRwxga3XdYU=";
17 };
18
19 postPatch = ''
20 export HOME=$TMPDIR
21 '';
22
23 propagatedBuildInputs = [ pbr python-jenkins pyyaml six stevedore fasteners jinja2 ];
24
25 # Need to fix test deps, relies on stestr and a few other packages that aren't available on nixpkgs
26 checkPhase = "$out/bin/jenkins-jobs --help";
27
28 meta = with lib; {
29 description = "Jenkins Job Builder is a system for configuring Jenkins jobs using simple YAML files stored in Git";
30 homepage = "https://docs.openstack.org/infra/jenkins-job-builder/";
31 license = licenses.asl20;
32 maintainers = with maintainers; [ ];
33 };
34
35}