mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
[Backport release-24.11] python3Packages.jenkins-job-builder: fix build (#356182)
This commit is contained in:
commit
18a3137aa0
@ -9,23 +9,36 @@
|
|||||||
pyyaml,
|
pyyaml,
|
||||||
six,
|
six,
|
||||||
stevedore,
|
stevedore,
|
||||||
|
pytestCheckHook,
|
||||||
|
setuptools,
|
||||||
|
fetchpatch,
|
||||||
|
testtools,
|
||||||
|
pytest-mock,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "jenkins-job-builder";
|
pname = "jenkins-job-builder";
|
||||||
version = "6.4.1";
|
version = "6.4.1";
|
||||||
format = "setuptools";
|
|
||||||
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-Re7rNAcm0cpSx1tmSzTjfDlW7y236lzFKFjVw0uUTmw=";
|
hash = "sha256-Re7rNAcm0cpSx1tmSzTjfDlW7y236lzFKFjVw0uUTmw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://opendev.org/jjb/jenkins-job-builder/commit/7bf0dacd80d6da7b8562db05f9187140e42947c8.patch";
|
||||||
|
hash = "sha256-2z7axGgVV5Z7A11JiQhlrjjXDKYe+X6NrJEuXd986Do=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
export HOME=$(mktemp -d)
|
export HOME=$(mktemp -d)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
dependencies = [
|
||||||
pbr
|
pbr
|
||||||
python-jenkins
|
python-jenkins
|
||||||
pyyaml
|
pyyaml
|
||||||
@ -35,14 +48,17 @@ buildPythonPackage rec {
|
|||||||
jinja2
|
jinja2
|
||||||
];
|
];
|
||||||
|
|
||||||
# Need to fix test deps, relies on stestr and a few other packages that aren't available on nixpkgs
|
nativeCheckInputs = [
|
||||||
checkPhase = "$out/bin/jenkins-jobs --help";
|
pytestCheckHook
|
||||||
|
testtools
|
||||||
|
pytest-mock
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "Jenkins Job Builder is a system for configuring Jenkins jobs using simple YAML files stored in Git";
|
description = "Jenkins Job Builder is a system for configuring Jenkins jobs using simple YAML files stored in Git";
|
||||||
mainProgram = "jenkins-jobs";
|
mainProgram = "jenkins-jobs";
|
||||||
homepage = "https://jenkins-job-builder.readthedocs.io/en/latest/";
|
homepage = "https://jenkins-job-builder.readthedocs.io/en/latest/";
|
||||||
license = licenses.asl20;
|
license = lib.licenses.asl20;
|
||||||
maintainers = [ ];
|
maintainers = with lib.maintainers; [ bot-wxt1221 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user