depot/third_party/nixpkgs/pkgs/development/python-modules/tldextract/default.nix
Default email 78efc47b99 Project import generated by Copybara.
GitOrigin-RevId: 83cbad92d73216bb0d9187c56cce0b91f9121d5a
2020-12-07 07:45:13 +00:00

25 lines
702 B
Nix

{ lib, fetchPypi, buildPythonPackage, setuptools_scm
, requests, requests-file, idna, pytest
, responses
}:
buildPythonPackage rec {
pname = "tldextract";
version = "3.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "cfae9bc8bda37c3e8c7c8639711ad20e95dc85b207a256b60b0b23d7ff5540ea";
};
propagatedBuildInputs = [ requests requests-file idna ];
checkInputs = [ pytest responses ];
nativeBuildInputs = [ setuptools_scm ];
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;
};
}