Unverified Commit 0a7f8fcd authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #265386 from natsukium/torrent-parser

python311Packages.torrent-parser: rename from torrent_parser
parents 1f269e92 8e7947fa
Loading
Loading
Loading
Loading
+39 −0
Original line number Diff line number Diff line
{ buildPythonPackage, lib, fetchFromGitHub }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "torrent_parser";
  pname = "torrent-parser";
  version = "0.4.1";
  pyproject = true;

  # No tarballs on Pypi
  src = fetchFromGitHub {
    owner  = "7sDream";
    repo   = "torrent_parser";
    rev    = "v${version}";
    sha256 = "sha256-zM738r3o9dGZYoWLN7fM4E06m6YPcAODEkgDS6wU/Sc=";
    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; [ ];
  };
+1 −0
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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 { };