Files
nixpkgs/pkgs/development/python-modules/ansible-builder/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

51 lines
944 B
Nix

{
lib,
setuptools,
setuptools-scm,
jsonschema,
pyyaml,
podman,
fetchPypi,
bindep,
buildPythonPackage,
packaging,
}:
buildPythonPackage rec {
pname = "ansible-builder";
version = "3.1.1";
pyproject = true;
src = fetchPypi {
pname = "ansible_builder";
inherit version;
hash = "sha256-nYi8FazH0xBW0MUZFKYQLayOWtc/ny01upg3jIlxTtI=";
};
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 ];
};
}