diff --git a/pkgs/tools/misc/gazelle-origin/default.nix b/pkgs/by-name/ga/gazelle-origin/package.nix similarity index 73% rename from pkgs/tools/misc/gazelle-origin/default.nix rename to pkgs/by-name/ga/gazelle-origin/package.nix index 37ef0aedd9cc..3fa2a2431b86 100644 --- a/pkgs/tools/misc/gazelle-origin/default.nix +++ b/pkgs/by-name/ga/gazelle-origin/package.nix @@ -1,26 +1,23 @@ { lib, - buildPythonApplication, fetchFromGitHub, - bencoder, - pyyaml, - requests, + python3Packages, }: -buildPythonApplication rec { +python3Packages.buildPythonApplication rec { pname = "gazelle-origin"; version = "3.0.0"; format = "setuptools"; src = fetchFromGitHub { - repo = pname; + repo = "gazelle-origin"; # Use the spinfast319 fork, since it seems that upstream # at is inactive owner = "spinfast319"; - rev = version; + tag = version; hash = "sha256-+yMKnfG2f+A1/MxSBFLaHfpCgI2m968iXqt+2QanM/c="; }; - propagatedBuildInputs = [ + dependencies = with python3Packages; [ bencoder pyyaml requests @@ -28,12 +25,12 @@ buildPythonApplication rec { pythonImportsCheck = [ "gazelleorigin" ]; - meta = with lib; { + meta = { 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 ]; + license = lib.licenses.unfree; + maintainers = with lib.maintainers; [ somasis ]; mainProgram = "gazelle-origin"; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 97ff33c46c2f..1724780bb4eb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12172,8 +12172,6 @@ with pkgs; gauche = callPackage ../development/interpreters/gauche { }; - gazelle-origin = python3Packages.callPackage ../tools/misc/gazelle-origin { }; - geany = callPackage ../applications/editors/geany { }; geany-with-vte = callPackage ../applications/editors/geany/with-vte.nix { };