about summary refs log tree commit diff
path: root/pkgs/tools/misc/gazelle-origin/default.nix
blob: 924c0ba8df7b329f3a430d8796e488b84e8d02bb (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
{ lib
, buildPythonApplication
, fetchFromGitHub
, bencoder
, pyyaml
, requests
}:
buildPythonApplication rec {
  pname = "gazelle-origin";
  version = "3.0.0";
  format = "setuptools";

  src = fetchFromGitHub {
    repo = pname;
    # Use the spinfast319 fork, since it seems that upstream
    # at <https://github.com/x1ppy/gazelle-origin> is inactive
    owner = "spinfast319";
    rev = version;
    hash = "sha256-+yMKnfG2f+A1/MxSBFLaHfpCgI2m968iXqt+2QanM/c=";
  };

  propagatedBuildInputs = [
    bencoder
    pyyaml
    requests
  ];

  pythonImportsCheck = [ "gazelleorigin" ];

  meta = with lib; {
    description = "Tool for generating origin files using the API of Gazelle-based torrent trackers";
    homepage = "https://github.com/spinfast319/gazelle-origin";
    # TODO license is unspecified in the upstream, as well as the fork
    license = licenses.unfree;
    maintainers = with maintainers; [ somasis ];
    mainProgram = "gazelle-origin";
  };
}