summary refs log tree commit diff
path: root/pkgs/development/python-modules/publicsuffix
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-01-13 00:18:25 +0000
committerJon <jonringer@users.noreply.github.com>2020-01-13 10:12:10 -0800
commit2ddd038e52b5d828e235d5c595fd3a6709686d99 (patch)
tree3e555e879b53e86c3082eb262965ec560563a3d7 /pkgs/development/python-modules/publicsuffix
parentd7627dd2df9e40ace0d494f25d05f7bcbb18151c (diff)
downloadnixpkgs-2ddd038e52b5d828e235d5c595fd3a6709686d99.tar
nixpkgs-2ddd038e52b5d828e235d5c595fd3a6709686d99.tar.gz
nixpkgs-2ddd038e52b5d828e235d5c595fd3a6709686d99.tar.bz2
nixpkgs-2ddd038e52b5d828e235d5c595fd3a6709686d99.tar.lz
nixpkgs-2ddd038e52b5d828e235d5c595fd3a6709686d99.tar.xz
nixpkgs-2ddd038e52b5d828e235d5c595fd3a6709686d99.tar.zst
nixpkgs-2ddd038e52b5d828e235d5c595fd3a6709686d99.zip
python3.pkgs.publicsuffix: fix build
This patch has not been necessary since
5425867bfa3e4ba83a3d67aa50b811b5f70d6fe5, and has in fact broken the
build since then.
Diffstat (limited to 'pkgs/development/python-modules/publicsuffix')
-rw-r--r--pkgs/development/python-modules/publicsuffix/default.nix5
1 files changed, 1 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/publicsuffix/default.nix b/pkgs/development/python-modules/publicsuffix/default.nix
index 027b017c23e..cb8c037fc76 100644
--- a/pkgs/development/python-modules/publicsuffix/default.nix
+++ b/pkgs/development/python-modules/publicsuffix/default.nix
@@ -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
   '';