2020-08-29 10:11:09 +01:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, setuptools_scm
|
2020-12-09 05:29:13 +00:00
|
|
|
, requests, requests-file, idna, filelock, pytest
|
2018-09-11 22:51:50 +01:00
|
|
|
, responses
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tldextract";
|
2020-11-29 14:04:44 +00:00
|
|
|
version = "3.1.0";
|
2018-09-11 22:51:50 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:44 +00:00
|
|
|
sha256 = "cfae9bc8bda37c3e8c7c8639711ad20e95dc85b207a256b60b0b23d7ff5540ea";
|
2018-09-11 22:51:50 +01:00
|
|
|
};
|
|
|
|
|
2020-12-09 05:29:13 +00:00
|
|
|
propagatedBuildInputs = [ requests requests-file idna filelock ];
|
2018-09-11 22:51:50 +01:00
|
|
|
checkInputs = [ pytest responses ];
|
2020-08-29 10:11:09 +01:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
2018-09-11 22:51:50 +01:00
|
|
|
|
2020-12-09 05:29:13 +00:00
|
|
|
# No tests included
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "tldextract" ];
|
|
|
|
|
2018-09-11 22:51:50 +01:00
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/john-kurkowski/tldextract";
|
2020-12-09 05:29:13 +00:00
|
|
|
description = "Accurately separate the TLD from the registered domain and subdomains of a URL, using the Public Suffix List";
|
2018-09-11 22:51:50 +01:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|