Merge pull request #265386 from natsukium/torrent-parser

python311Packages.torrent-parser: rename from torrent_parser
This commit is contained in:
Martin Weinelt 2023-11-10 12:00:52 +01:00 committed by GitHub
commit 0a7f8fcd97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 41 additions and 22 deletions

View File

@ -0,0 +1,39 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "torrent-parser";
version = "0.4.1";
pyproject = true;
src = fetchFromGitHub {
owner = "7sDream";
repo = "torrent_parser";
rev = "v${version}";
hash = "sha256-zM738r3o9dGZYoWLN7fM4E06m6YPcAODEkgDS6wU/Sc=";
};
nativeBuildInputs = [
setuptools
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"torrent_parser"
];
meta = {
description = "A .torrent file parser and creator for both Python 2 and 3";
homepage = "https://github.com/7sDream/torrent_parser";
changelog = "https://github.com/7sDream/torrent_parser/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
};
}

View File

@ -1,21 +0,0 @@
{ buildPythonPackage, lib, fetchFromGitHub }:
buildPythonPackage rec {
pname = "torrent_parser";
version = "0.4.1";
# No tarballs on Pypi
src = fetchFromGitHub {
owner = "7sDream";
repo = "torrent_parser";
rev = "v${version}";
sha256 = "sha256-zM738r3o9dGZYoWLN7fM4E06m6YPcAODEkgDS6wU/Sc=";
};
meta = {
description = "A .torrent file parser and creator for both Python 2 and 3";
homepage = "https://github.com/7sDream/torrent_parser";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
};
}

View File

@ -419,6 +419,7 @@ mapAliases ({
Theano = theano; # added 2023-02-19
TheanoWithCuda = theanoWithCuda; # added 2023-02-19
TheanoWithoutCuda = theanoWithoutCuda; # added 2023-02-19
torrent_parser = torrent-parser; # added 2023-11-04
transip = throw "transip has been removed because it is no longer maintained. TransIP SOAP V5 API was marked as deprecated"; # added 2023-02-27
tumpa = throw "tumpa was promoted to a top-level attribute"; # added 2022-11-19
tvdb_api = tvdb-api; # added 2023-10-20

View File

@ -14114,7 +14114,7 @@ self: super: with self; {
torpy = callPackage ../development/python-modules/torpy { };
torrent_parser = callPackage ../development/python-modules/torrent_parser { };
torrent-parser = callPackage ../development/python-modules/torrent-parser { };
torrequest = callPackage ../development/python-modules/torrequest { };