Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 24 lines 630 B view raw
1{ lib, fetchPypi, buildPythonPackage 2, requests, requests-file, idna, pytest 3, responses 4}: 5 6buildPythonPackage rec { 7 pname = "tldextract"; 8 version = "2.2.1"; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "1lcywabjy7vpm6awl2cw4m6rk6h85qnbql0j33xcfryy2dhfyaxp"; 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}