3
0
Fork 0
forked from mirrors/nixpkgs

python3.pkgs.publicsuffix: fix build

This patch has not been necessary since
5425867bfa, and has in fact broken the
build since then.
This commit is contained in:
Alyssa Ross 2020-01-13 00:18:25 +00:00 committed by Jon
parent d7627dd2df
commit 2ddd038e52

View file

@ -10,11 +10,8 @@ buildPythonPackage rec {
};
# fix the ASCII-mode LICENSE file read
# disable test_fetch and the doctests (which also invoke fetch)
patchPhase = stdenv.lib.optionalString isPy3k ''
sed -i "s/)\.read(/,encoding='utf-8'\0/" setup.py
'' + ''
patchPhase = ''
sed -i -e "/def test_fetch/i\\
\\t@unittest.skip('requires internet')" -e "/def additional_tests():/,+1d" tests.py
'';