ansible-navigator: modernize and make build again

ansible-navigator: modernize
This commit is contained in:
Pyrox 2024-08-07 17:12:42 -04:00
parent 0717d7fda7
commit 64646ebabe
No known key found for this signature in database
GPG Key ID: 8CDF3F7CAA53A0F5

View File

@ -1,23 +1,20 @@
{
lib,
pkgs,
python3Packages,
podman,
fetchPypi,
buildPythonPackage,
pythonOlder,
ansible-lint,
}:
buildPythonPackage rec {
python3Packages.buildPythonApplication rec {
pname = "ansible-navigator";
version = "24.7.0";
pyproject = true;
disabled = pythonOlder "3.10";
disabled = python3Packages.pythonOlder "3.10";
src = fetchPypi {
pname = "ansible_navigator";
inherit version;
pname = "ansible_navigator";
hash = "sha256-XMwJzDxo/VZ+0qy5MLg/Kw/7j3V594qfV+T6jeVEWzg=";
};
@ -26,15 +23,16 @@ buildPythonPackage rec {
setuptools-scm
];
propagatedBuildInputs = with python3Packages; [
dependencies = with python3Packages; [
ansible-builder
ansible-runner
podman
pkgs.ansible-lint
jinja2
jsonschema
tzdata
pyyaml
onigurumacffi
ansible-lint
podman
];
# Tests want to run in tmux
@ -42,11 +40,11 @@ buildPythonPackage rec {
pythonImportsCheck = [ "ansible_navigator" ];
meta = with lib; {
meta = {
description = "Text-based user interface (TUI) for Ansible";
homepage = "https://ansible.readthedocs.io/projects/navigator/";
changelog = "https://github.com/ansible/ansible-navigator/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ melkor333 ];
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ melkor333 ];
};
}