summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/pq/pq-cli/package.nix
blob: dbe40cd0ccbe9a9e104699193a62df46234d25c8 (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
{
  lib,
  fetchFromGitHub,
  python3Packages,
  unstableGitUpdater,
}:

python3Packages.buildPythonApplication (finalAttrs: {
  pname = "pq-cli";
  version = "1.0.4";
  pyproject = true;

  __structuredAttrs = true;

  src = fetchFromGitHub {
    owner = "rr-";
    repo = "pq-cli";
    tag = finalAttrs.version;
    hash = "sha256-QpHNN+rZwhZ45kY4/Czm0iJp/n6yx4ukcjSjpco5yKE=";
  };

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

  dependencies = with python3Packages; [
    xdg
    xdg-base-dirs
    urwid
    urwid-readline
  ];

  pythonRelaxDeps = [
    "urwid"
    "urwid-readline"
  ];

  passthru.updateScript = unstableGitUpdater { };

  meta = {
    description = "Progress Quest: the CLI edition";
    homepage = "https://github.com/rr-/pq-cli";
    changelog = "https://github.com/rr-/pq-cli/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ genga898 ];
    mainProgram = "pqcli";
  };
})