2020-09-25 04:45:31 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, setuptools_scm
|
2020-04-24 23:36:52 +00:00
|
|
|
, requests, requests-file, idna, pytest
|
|
|
|
, responses
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tldextract";
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "3.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-07 07:45:13 +00:00
|
|
|
sha256 = "cfae9bc8bda37c3e8c7c8639711ad20e95dc85b207a256b60b0b23d7ff5540ea";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests requests-file idna ];
|
|
|
|
checkInputs = [ pytest responses ];
|
2020-09-25 04:45:31 +00:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/john-kurkowski/tldextract";
|
|
|
|
description = "Accurately separate the TLD from the registered domain and subdomains of a URL, using the Public Suffix List.";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|