about summary refs log tree commit diff
path: root/pkgs/top-level
diff options
context:
space:
mode:
authorElis Hirwing <elis@hirwing.se>2018-03-10 08:50:21 +0100
committerElis Hirwing <elis@hirwing.se>2018-03-10 12:07:11 +0100
commit605a373468dcafc0ac4829e2705035efa2583951 (patch)
treeafc25a4796ab2fa6dac295a847d4103708cba8b2 /pkgs/top-level
parent14464b1dc5aa480e030ef8ba25da1899160e81fb (diff)
downloadnixlib-605a373468dcafc0ac4829e2705035efa2583951.tar
nixlib-605a373468dcafc0ac4829e2705035efa2583951.tar.gz
nixlib-605a373468dcafc0ac4829e2705035efa2583951.tar.bz2
nixlib-605a373468dcafc0ac4829e2705035efa2583951.tar.lz
nixlib-605a373468dcafc0ac4829e2705035efa2583951.tar.xz
nixlib-605a373468dcafc0ac4829e2705035efa2583951.tar.zst
nixlib-605a373468dcafc0ac4829e2705035efa2583951.zip
publicsuffix: move to own file and fix homepage
Diffstat (limited to 'pkgs/top-level')
-rw-r--r--pkgs/top-level/python-packages.nix26
1 files changed, 1 insertions, 25 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index aa7417663159..74fa914de1a9 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -12718,31 +12718,7 @@ in {
 
   ptpython = callPackage ../development/python-modules/ptpython {};
 
-  publicsuffix = buildPythonPackage rec {
-    name = "publicsuffix-${version}";
-    version = "1.1.0";
-
-    src = pkgs.fetchurl {
-      url = "mirror://pypi/p/publicsuffix/${name}.tar.gz";
-      sha256 = "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf";
-    };
-
-    # fix the ASCII-mode LICENSE file read
-    # disable test_fetch and the doctests (which also invoke fetch)
-    patchPhase = optionalString isPy3k ''
-      sed -i "s/)\.read(/,encoding='utf-8'\0/" setup.py
-    '' + ''
-      sed -i -e "/def test_fetch/i\\
-      \\t@unittest.skip('requires internet')" -e "/def additional_tests():/,+1d" tests.py
-    '';
-
-    meta = {
-      description = "Allows to get the public suffix of a domain name";
-      homepage = "http://pypi.python.org/pypi/publicsuffix/";
-      license = licenses.mit;
-    };
-  };
-
+  publicsuffix = callPackage ../development/python-modules/publicsuffix {};
 
   py = callPackage ../development/python-modules/py { };