nixpkgs-suyu/pkgs/development/python-modules/tldextract/default.nix
2019-03-15 16:48:08 +01:00

24 lines
630 B
Nix

{ lib, fetchPypi, buildPythonPackage
, requests, requests-file, idna, pytest
, responses
}:
buildPythonPackage rec {
pname = "tldextract";
version = "2.2.1";
src = fetchPypi {
inherit pname version;
sha256 = "1lcywabjy7vpm6awl2cw4m6rk6h85qnbql0j33xcfryy2dhfyaxp";
};
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;
};
}