···1-{ lib, buildPythonPackage, fetchFromGitHub, requests }:
23buildPythonPackage rec {
4 pname = "publicsuffix2";
5- version = "2.20191221";
67- # 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 };
1516- nativeBuildInputs = [ requests ];
0000001718 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;
025 };
26}
···1+{ lib, buildPythonPackage, fetchFromGitHub }:
23buildPythonPackage rec {
4 pname = "publicsuffix2";
5+ version = "2.2019-12-21";
6007 src = fetchFromGitHub {
8 owner = "nexB";
9 repo = "python-publicsuffix2";
10+ rev = "release-${version}";
11 sha256 = "1dkvfvl0izq9hqzilnw8ipkbgjs9xyad9p21i3864hzinbh0wp9r";
12 };
1314+ postPatch = ''
15+ # only used to update the interal publicsuffix list
16+ substituteInPlace setup.py \
17+ --replace "'requests >= 2.7.0'," ""
18+ '';
19+20+ pythonImportsCheck = [ "publicsuffix2" ];
2122 meta = with lib; {
23+ description = "Get a public suffix for a domain name using the Public Suffix List";
24+ homepage = "https://github.com/nexB/python-publicsuffix2";
00025 license = licenses.mpl20;
26+ maintainers = with maintainers; [ SuperSandro2000 ];
27 };
28}