Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / publicsuffix2 / default.nix
blob30a02ec2f0dddad9831c8352dd60c95324225a9e
1 { lib, buildPythonPackage, fetchFromGitHub, requests }:
3 buildPythonPackage rec {
4   pname = "publicsuffix2";
5   version = "2.20191221";
7   # Tests are missing in the sdist
8   # See: https://github.com/nexB/python-publicsuffix2/issues/12
9   src = fetchFromGitHub {
10     owner = "nexB";
11     repo = "python-publicsuffix2";
12     rev = "release-2.2019-12-21";
13     sha256 = "1dkvfvl0izq9hqzilnw8ipkbgjs9xyad9p21i3864hzinbh0wp9r";
14   };
16   nativeBuildInputs = [ requests ];
18   meta = with lib; {
19     description = ''
20       Get a public suffix for a domain name using the Public Suffix
21       List. Forked from and using the same API as the publicsuffix package.
22     '';
23     homepage = "https://pypi.python.org/pypi/publicsuffix2/";
24     license = licenses.mpl20;
25   };