depot/third_party/nixpkgs/pkgs/development/python-modules/ansible-navigator/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

48 lines
1 KiB
Nix

{
lib,
pkgs,
python3Packages,
podman,
oniguruma,
fetchPypi,
buildPythonPackage,
}:
buildPythonPackage rec {
pname = "ansible-navigator";
version = "24.2.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-qXBhM63fFwPwo0pmEhZnZnGC8Eht8eFPfVbDkY98MGM=";
};
buildInputs = with python3Packages; [
setuptools
setuptools-scm
];
propagatedBuildInputs = with python3Packages; [
ansible-builder
ansible-runner
podman
pkgs.ansible-lint
jinja2
jsonschema
tzdata
onigurumacffi
];
patchPhase = ''
# scm_git_archive doesn't exist anymore. Fixed upstream but unreleased
# Rev: https://github.com/ansible/ansible-navigator/pull/1716
sed -i '/setuptools_scm_git_archive/d' pyproject.toml
'';
meta = with lib; {
description = "Text-based user interface (TUI) for Ansible";
homepage = "https://ansible.readthedocs.io/projects/navigator/";
license = licenses.asl20;
maintainers = with maintainers; [ melkor333 ];
};
}