python311Packages.tldextract: 3.6.0 -> 5.0.0
Changelog: https://github.com/john-kurkowski/tldextract/releases/tag/5.0.0
This commit is contained in:
parent
535734e71c
commit
fe9c8fed9e
@ -1,6 +1,6 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchFromGitHub
|
||||
, filelock
|
||||
, idna
|
||||
, pytest-mock
|
||||
@ -14,17 +14,21 @@
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "tldextract";
|
||||
version = "3.6.0";
|
||||
format = "pyproject";
|
||||
pname = "tldextract";
|
||||
version = "5.0.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-pdi2WDeR2sominWS6892QVL6SWF5g8SZFu6d6Zs2YiI=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "john-kurkowski";
|
||||
repo = "tldextract";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-oZ7L7DGe9HmBo5a489LXjajiSecJNLGHzCF/7DV9au4=";
|
||||
};
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
@ -43,11 +47,6 @@ buildPythonPackage rec {
|
||||
responses
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pytest.ini \
|
||||
--replace " --pylint" ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"tldextract"
|
||||
];
|
||||
@ -59,6 +58,7 @@ buildPythonPackage rec {
|
||||
from the registered domain and subdomains of a URL.
|
||||
'';
|
||||
homepage = "https://github.com/john-kurkowski/tldextract";
|
||||
changelog = "https://github.com/john-kurkowski/tldextract/blob/${version}/CHANGELOG.md";
|
||||
license = with licenses; [ bsd3 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user