1{ lib, buildPythonPackage, fetchFromGitHub, requests }: 2 3buildPythonPackage rec { 4 pname = "publicsuffix2"; 5 version = "2.20191221"; 6 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 }; 15 16 nativeBuildInputs = [ requests ]; 17 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 }; 26}