mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-29 09:20:13 +00:00
51 lines
944 B
Nix
51 lines
944 B
Nix
{
|
|
lib,
|
|
setuptools,
|
|
setuptools-scm,
|
|
jsonschema,
|
|
pyyaml,
|
|
podman,
|
|
fetchPypi,
|
|
bindep,
|
|
buildPythonPackage,
|
|
packaging,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ansible-builder";
|
|
version = "3.2.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "ansible_builder";
|
|
inherit version;
|
|
hash = "sha256-jNhjkBESeqpQRv1g5WrnU+tZkGG/ST7KLGt1xUz8YhI=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|