From 9c0cd9d38c39622118895f46f2896426b099bdf1 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 24 Oct 2025 13:24:08 +0100 Subject: gnu: python-tldextract: Move to python-web. * gnu/packages/python-xyz.scm (python-tldextract): Move from here ... * gnu/packages/python-web.scm: ... to here. Change-Id: I0f1a50cca00e7d61877a86f81625f41d40782006 --- gnu/packages/python-web.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'gnu/packages/python-web.scm') diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 3716b681152..c40a37b4d45 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -23,6 +23,7 @@ ;;; Copyright © 2017 Oleg Pykhalov ;;; Copyright © 2015, 2016 David Thompson ;;; Copyright © 2017 Mark Meyer +;;; Copyright © 2018 Clément Lassieur ;;; Copyright © 2018 Tomáš Čech ;;; Copyright © 2018, 2019, 2021, 2024 Nicolas Goaziou ;;; Copyright © 2018 Mathieu Othacehe @@ -3930,6 +3931,40 @@ high-speed transfers via libcurl and frequently outperforms alternatives.") ;; under the terms of LGPLv2.1+ or Expat. (license (list license:lgpl2.1+ license:expat)))) +(define-public python-tldextract + (package + (name "python-tldextract") + (version "5.3.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "tldextract" version)) + (sha256 + (base32 "02c6cyh8f3dagcw786m9nl5y0n3xa98p5mb7d7xfr84l2l5bglmk")))) + (build-system pyproject-build-system) + (native-inputs + (list nss-certs-for-test + python-pytest + python-pytest-mock + python-responses + python-setuptools + python-setuptools-scm + python-syrupy)) + (propagated-inputs + (list python-filelock + python-idna + python-requests + python-requests-file)) + (home-page "https://github.com/john-kurkowski/tldextract") + (synopsis + "Separate the TLD from the registered domain and subdomains of a URL") + (description + "TLDExtract accurately separates the TLD from the registered domain and +subdomains of a URL, using the Public Suffix List. By default, this includes +the public ICANN TLDs and their exceptions. It can optionally support the +Public Suffix List's private domains as well.") + (license license:bsd-3))) + (define-public python-tracerite (package (name "python-tracerite") -- cgit v1.3