ansible-builder: init at 3.0.1

This commit is contained in:
Samuel Hierholzer (Adfinis AG) 2024-04-02 15:06:48 +02:00
parent d52b7353cc
commit 0ef3730ed9
No known key found for this signature in database
GPG Key ID: A71725F119DAD5E2
3 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,45 @@
{ lib
, python3Packages
, podman
, fetchPypi
, bindep
}:
python3Packages.buildPythonPackage rec {
pname = "ansible-builder";
version = "3.0.1";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-rxyhgj9Cad751tPAptCTLCtXQLUXaRYv39bkoFzzjOk=";
};
nativeBuildInputs = with python3Packages; [
setuptools
setuptools-scm
];
buildInputs = [
bindep
];
propagatedBuildInputs = with python3Packages; [
podman
jsonschema
requirements-parser
pyyaml
];
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
'';
meta = with lib; {
description = "An Ansible execution environment builder";
homepage = "https://ansible-builder.readthedocs.io/en/stable/";
license = licenses.asl20;
maintainers = with maintainers; [ melkor333 ];
};
}

View File

@ -18060,6 +18060,8 @@ with pkgs;
};
}));
ansible-builder = with python3Packages; toPythonApplication ansible-builder;
ansible-doctor = callPackage ../tools/admin/ansible/doctor.nix { };
dbus-test-runner = callPackage ../development/tools/dbus-test-runner { };

View File

@ -585,6 +585,8 @@ self: super: with self; {
ansible = callPackage ../development/python-modules/ansible { };
ansible-builder = callPackage ../development/python-modules/ansible-builder { };
ansible-compat = callPackage ../development/python-modules/ansible-compat { };
ansible-core = callPackage ../development/python-modules/ansible/core.nix { };