anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / tools / misc / gazelle-origin / default.nix
blob924c0ba8df7b329f3a430d8796e488b84e8d02bb
1 { lib
2 , buildPythonApplication
3 , fetchFromGitHub
4 , bencoder
5 , pyyaml
6 , requests
7 }:
8 buildPythonApplication rec {
9   pname = "gazelle-origin";
10   version = "3.0.0";
11   format = "setuptools";
13   src = fetchFromGitHub {
14     repo = pname;
15     # Use the spinfast319 fork, since it seems that upstream
16     # at <https://github.com/x1ppy/gazelle-origin> is inactive
17     owner = "spinfast319";
18     rev = version;
19     hash = "sha256-+yMKnfG2f+A1/MxSBFLaHfpCgI2m968iXqt+2QanM/c=";
20   };
22   propagatedBuildInputs = [
23     bencoder
24     pyyaml
25     requests
26   ];
28   pythonImportsCheck = [ "gazelleorigin" ];
30   meta = with lib; {
31     description = "Tool for generating origin files using the API of Gazelle-based torrent trackers";
32     homepage = "https://github.com/spinfast319/gazelle-origin";
33     # TODO license is unspecified in the upstream, as well as the fork
34     license = licenses.unfree;
35     maintainers = with maintainers; [ somasis ];
36     mainProgram = "gazelle-origin";
37   };