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