depot/third_party/nixpkgs/pkgs/tools/misc/gazelle-origin/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

37 lines
934 B
Nix

{ 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 ];
};
}