mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 03:14:03 +00:00
Merge pull request #203542 from somasis/gazelle-origin
This commit is contained in:
commit
445b7076d2
27
pkgs/development/python-modules/bencoder/default.nix
Normal file
27
pkgs/development/python-modules/bencoder/default.nix
Normal file
@ -0,0 +1,27 @@
|
||||
{ lib
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, setuptools
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "bencoder";
|
||||
version = "0.2.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-rENvM/3X51stkFdJHSq+77VjHvsTyBNAPbCtsRq1L8I=";
|
||||
};
|
||||
|
||||
pythonImportsCheck = [ "bencoder" ];
|
||||
|
||||
# There are no tests.
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A simple bencode decoder/encoder library in pure Python";
|
||||
homepage = "https://github.com/utdemir/bencoder";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ somasis ];
|
||||
};
|
||||
}
|
38
pkgs/tools/misc/gazelle-origin/default.nix
Normal file
38
pkgs/tools/misc/gazelle-origin/default.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{ lib
|
||||
, buildPythonApplication
|
||||
, fetchFromGitHub
|
||||
, bencoder
|
||||
, pyyaml
|
||||
, requests
|
||||
, setuptools
|
||||
}:
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -29042,6 +29042,8 @@ with pkgs;
|
||||
|
||||
gauche = callPackage ../development/interpreters/gauche { };
|
||||
|
||||
gazelle-origin = python3Packages.callPackage ../tools/misc/gazelle-origin { };
|
||||
|
||||
gcal = callPackage ../applications/misc/gcal { };
|
||||
|
||||
gcstar = callPackage ../applications/misc/gcstar { };
|
||||
|
@ -1212,6 +1212,8 @@ self: super: with self; {
|
||||
|
||||
bellows = callPackage ../development/python-modules/bellows { };
|
||||
|
||||
bencoder = callPackage ../development/python-modules/bencoder { };
|
||||
|
||||
beniget = callPackage ../development/python-modules/beniget { };
|
||||
|
||||
bespon = callPackage ../development/python-modules/bespon { };
|
||||
|
Loading…
Reference in New Issue
Block a user