2020-08-29 10:11:09 +01:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, setuptools_scm
|
2018-09-11 22:51:50 +01:00
|
|
|
, requests, requests-file, idna, pytest
|
|
|
|
, responses
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tldextract";
|
2020-08-16 18:31:18 +01:00
|
|
|
version = "2.2.3";
|
2018-09-11 22:51:50 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 18:31:18 +01:00
|
|
|
sha256 = "ab0e38977a129c72729476d5f8c85a8e1f8e49e9202e1db8dca76e95da7be9a8";
|
2018-09-11 22:51:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests requests-file idna ];
|
|
|
|
checkInputs = [ pytest responses ];
|
2020-08-29 10:11:09 +01:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
2018-09-11 22:51:50 +01:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/john-kurkowski/tldextract";
|
2018-09-11 22:51:50 +01:00
|
|
|
description = "Accurately separate the TLD from the registered domain and subdomains of a URL, using the Public Suffix List.";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|