Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 51 lines 984 B view raw
1{ 2 lib, 3 setuptools, 4 setuptools-scm, 5 jsonschema, 6 requirements-parser, 7 pyyaml, 8 podman, 9 fetchPypi, 10 bindep, 11 buildPythonPackage, 12}: 13 14buildPythonPackage rec { 15 pname = "ansible-builder"; 16 version = "3.1.0"; 17 pyproject = true; 18 19 src = fetchPypi { 20 pname = "ansible_builder"; 21 inherit version; 22 hash = "sha256-0txXPianvVCV6YrrN+6bALyfUAWr6nFH10IpwPNCb8s="; 23 }; 24 25 patchPhase = '' 26 # the upper limits of setuptools are unnecessary 27 # See https://github.com/ansible/ansible-builder/issues/639 28 sed -i 's/, <=[0-9.]*//g' pyproject.toml 29 ''; 30 31 build-system = [ 32 setuptools 33 setuptools-scm 34 ]; 35 36 buildInputs = [ bindep ]; 37 38 dependencies = [ 39 podman 40 jsonschema 41 requirements-parser 42 pyyaml 43 ]; 44 45 meta = with lib; { 46 description = "Ansible execution environment builder"; 47 homepage = "https://ansible-builder.readthedocs.io/en/stable/"; 48 license = licenses.asl20; 49 maintainers = with maintainers; [ melkor333 ]; 50 }; 51}