2018-09-11 22:51:50 +01:00
|
|
|
{ lib, fetchPypi, buildPythonPackage
|
|
|
|
, requests, requests-file, idna, pytest
|
|
|
|
, responses
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tldextract";
|
2019-10-16 10:43:16 +01:00
|
|
|
version = "2.2.2";
|
2018-09-11 22:51:50 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-16 10:43:16 +01:00
|
|
|
sha256 = "9aa21a1f7827df4209e242ec4fc2293af5940ec730cde46ea80f66ed97bfc808";
|
2018-09-11 22:51:50 +01: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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|