depot/third_party/nixpkgs/pkgs/development/python-modules/tldextract/default.nix
Default email 58f8944c92 Project import generated by Copybara.
GitOrigin-RevId: 5aba0fe9766a7201a336249fd6cb76e0d7ba2faf
2020-09-24 23:45:31 -05:00

25 lines
702 B
Nix

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