1{ lib, fetchPypi, buildPythonPackage
2, requests, requests-file, idna, pytest
3, responses
4}:
5
6buildPythonPackage rec {
7 pname = "tldextract";
8 version = "2.2.0";
9
10 src = fetchPypi {
11 inherit pname version;
12 sha256 = "1d5s8v6kpsgazyahflhji1cfdcf89rv7l7z55v774bhzvcjp2y99";
13 };
14
15 propagatedBuildInputs = [ requests requests-file idna ];
16 checkInputs = [ pytest responses ];
17
18 meta = {
19 homepage = https://github.com/john-kurkowski/tldextract;
20 description = "Accurately separate the TLD from the registered domain and subdomains of a URL, using the Public Suffix List.";
21 license = lib.licenses.bsd3;
22 };
23
24}