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