depot/third_party/nixpkgs/pkgs/development/python-modules/tldextract/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

24 lines
644 B
Nix

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