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