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:
parent
d7627dd2df
commit
2ddd038e52
@ -10,11 +10,8 @@ buildPythonPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
# fix the ASCII-mode LICENSE file read
|
|
||||||
# disable test_fetch and the doctests (which also invoke fetch)
|
# disable test_fetch and the doctests (which also invoke fetch)
|
||||||
patchPhase = stdenv.lib.optionalString isPy3k ''
|
patchPhase = ''
|
||||||
sed -i "s/)\.read(/,encoding='utf-8'\0/" setup.py
|
|
||||||
'' + ''
|
|
||||||
sed -i -e "/def test_fetch/i\\
|
sed -i -e "/def test_fetch/i\\
|
||||||
\\t@unittest.skip('requires internet')" -e "/def additional_tests():/,+1d" tests.py
|
\\t@unittest.skip('requires internet')" -e "/def additional_tests():/,+1d" tests.py
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user