2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
python3Packages,
|
|
|
|
podman,
|
|
|
|
fetchPypi,
|
|
|
|
bindep,
|
2024-04-21 15:54:59 +00:00
|
|
|
}:
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = [ bindep ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|