summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/is/isd/package.nix
blob: 06cd7dc2e67b5421312cf9b4fe373d20092db334 (plain)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
  lib,
  python3Packages,
  fetchFromGitHub,
  nix-update-script,
}:

python3Packages.buildPythonApplication (finalAttrs: {
  pname = "isd";
  version = "0.6.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "kainctl";
    repo = "isd";
    tag = "v${finalAttrs.version}";
    hash = "sha256-aIVZvsmIZRHKg7267wxWzmcwAqleu4i7z5GHSNJi260=";
  };

  build-system = with python3Packages; [
    hatchling
    setuptools
  ];

  dependencies = with python3Packages; [
    pfzy
    pydantic
    pydantic-settings
    pyyaml
    textual
    types-pyyaml
    xdg-base-dirs
  ];

  pythonRelaxDeps = [
    "pydantic"
    "pydantic-settings"
    "types-pyyaml"
  ];

  pythonImportsCheck = [
    "isd_tui"
  ];

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "TUI to interactively work with systemd units";
    longDescription = ''
      isd (interactive systemd) is a TUI offering fuzzy search for systemd
      units, auto-refreshing previews, smart `sudo` handling, and a fully
      customizable interface for power-users and newcomers alike.
    '';
    homepage = "https://github.com/kainctl/isd";
    changelog = "https://github.com/kainctl/isd/releases/tag/v${finalAttrs.version}";
    license = lib.licenses.gpl3Only;
    mainProgram = "isd";
    maintainers = with lib.maintainers; [
      gepbird
    ];
    platforms = lib.platforms.linux;
  };
})