about summary refs log tree commit diff
path: root/pkgs/development/python-modules/ansible-navigator/default.nix
blob: 4f5dca37452f14d78f17ef4d5c30e7f2ef76f2e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
  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 ];
  };
}