summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/st/stig/package.nix
blob: 1feb9ec5165d115af8d006564ead2f66b400e39b (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
{
  lib,
  fetchFromGitHub,
  python3Packages,
  testers,
  stig,
}:

python3Packages.buildPythonApplication (finalAttrs: {
  pname = "stig";
  # This project has a different concept for pre release / alpha,
  # Read the project's README for details: https://github.com/rndusr/stig#stig
  version = "0.14.2a0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "rndusr";
    repo = "stig";
    rev = "v${finalAttrs.version}";
    hash = "sha256-g37be8EiuQGnGC6uKNadtG9Z78f+NutHHpAwzGcsmD8=";
  };

  build-system = with python3Packages; [
    setuptools
  ];

  dependencies = with python3Packages; [
    urwid
    urwidtrees
    aiohttp
    async-timeout
    pyxdg
    blinker
    natsort
    setproctitle
  ];

  pythonRelaxDeps = [
    # relax urwidtrees==1.0.3
    "urwidtrees"
  ];

  # According to the upstream author,
  # stig no longer has working tests
  # since asynctest (former test dependency) got abandoned.
  # See https://github.com/rndusr/stig/issues/206#issuecomment-2669636320
  doCheck = false;

  passthru.tests = testers.testVersion {
    package = stig;
    command = "stig -v";
    version = "stig version ${finalAttrs.version}";
  };

  meta = {
    description = "TUI and CLI for the BitTorrent client Transmission";
    homepage = "https://github.com/rndusr/stig";
    license = lib.licenses.gpl3Plus;
    maintainers = [ ];
  };
})