587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
47 lines
1 KiB
Nix
47 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 = "A text-based user interface (TUI) for Ansible.";
|
|
homepage = "https://ansible.readthedocs.io/projects/navigator/";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ melkor333 ];
|
|
};
|
|
}
|