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