···11-{ lib, buildPythonPackage, fetchFromGitHub, requests }:
11+{ lib, buildPythonPackage, fetchFromGitHub }:
2233buildPythonPackage rec {
44 pname = "publicsuffix2";
55- version = "2.20191221";
55+ version = "2.2019-12-21";
6677- # Tests are missing in the sdist
88- # See: https://github.com/nexB/python-publicsuffix2/issues/12
97 src = fetchFromGitHub {
108 owner = "nexB";
119 repo = "python-publicsuffix2";
1212- rev = "release-2.2019-12-21";
1010+ rev = "release-${version}";
1311 sha256 = "1dkvfvl0izq9hqzilnw8ipkbgjs9xyad9p21i3864hzinbh0wp9r";
1412 };
15131616- nativeBuildInputs = [ requests ];
1414+ postPatch = ''
1515+ # only used to update the interal publicsuffix list
1616+ substituteInPlace setup.py \
1717+ --replace "'requests >= 2.7.0'," ""
1818+ '';
1919+2020+ pythonImportsCheck = [ "publicsuffix2" ];
17211822 meta = with lib; {
1919- description = ''
2020- Get a public suffix for a domain name using the Public Suffix
2121- List. Forked from and using the same API as the publicsuffix package.
2222- '';
2323- homepage = "https://pypi.python.org/pypi/publicsuffix2/";
2323+ description = "Get a public suffix for a domain name using the Public Suffix List";
2424+ homepage = "https://github.com/nexB/python-publicsuffix2";
2425 license = licenses.mpl20;
2626+ maintainers = with maintainers; [ SuperSandro2000 ];
2527 };
2628}