1{ lib, buildPythonPackage, fetchPypi }: 2 3buildPythonPackage rec { 4 pname = "publicsuffix"; 5 version = "1.1.1"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "22ce1d65ab6af5e9b2122e2443facdb93fb5c4abf24138099cb10fe7989f43b6"; 10 }; 11 12 13 # disable test_fetch and the doctests (which also invoke fetch) 14 postPatch = '' 15 sed -i -e "/def test_fetch/i\\ 16 \\t@unittest.skip('requires internet')" -e "/def additional_tests():/,+1d" tests.py 17 ''; 18 19 meta = with lib; { 20 description = "Allows to get the public suffix of a domain name"; 21 homepage = "https://pypi.python.org/pypi/publicsuffix/"; 22 license = licenses.mit; 23 }; 24}