2018-09-11 21:51:50 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage
|
|
|
|
, requests, requests-file, idna, pytest
|
|
|
|
, responses
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tldextract";
|
2019-03-15 15:48:08 +00:00
|
|
|
version = "2.2.1";
|
2018-09-11 21:51:50 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-03-15 15:48:08 +00:00
|
|
|
sha256 = "1lcywabjy7vpm6awl2cw4m6rk6h85qnbql0j33xcfryy2dhfyaxp";
|
2018-09-11 21:51:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests requests-file idna ];
|
|
|
|
checkInputs = [ pytest responses ];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|