blob: 8c124ac589142e39cd6a1422554afd246cd34a9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{
lib,
setuptools,
setuptools-scm,
jsonschema,
pyyaml,
podman,
fetchPypi,
bindep,
buildPythonPackage,
packaging,
}:
buildPythonPackage rec {
pname = "ansible-builder";
version = "3.1.1";
pyproject = true;
src = fetchPypi {
pname = "ansible_builder";
inherit version;
hash = "sha256-nYi8FazH0xBW0MUZFKYQLayOWtc/ny01upg3jIlxTtI=";
};
patchPhase = ''
# the upper limits of setuptools are unnecessary
# See https://github.com/ansible/ansible-builder/issues/639
sed -i 's/, <=[0-9.]*//g' pyproject.toml
'';
build-system = [
setuptools
setuptools-scm
];
dependencies = [
podman
bindep
jsonschema
pyyaml
packaging
];
meta = {
description = "Ansible execution environment builder";
homepage = "https://ansible-builder.readthedocs.io/en/stable/";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ melkor333 ];
};
}
|