Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

publicsuffix: move to own file and fix homepage

(cherry picked from commit 605a373468dcafc0ac4829e2705035efa2583951)

authored by Elis Hirwing and committed by Frederik Rietdijk 0cf830ec 9a6e742e

+28 -25
+27
pkgs/development/python-modules/publicsuffix/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchPypi, isPy3k }: 2 + 3 + buildPythonPackage rec { 4 + pname = "publicsuffix"; 5 + version = "1.1.0"; 6 + 7 + src = fetchPypi { 8 + inherit pname version; 9 + sha256 = "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf"; 10 + }; 11 + 12 + 13 + # fix the ASCII-mode LICENSE file read 14 + # disable test_fetch and the doctests (which also invoke fetch) 15 + patchPhase = stdenv.lib.optionalString isPy3k '' 16 + sed -i "s/)\.read(/,encoding='utf-8'\0/" setup.py 17 + '' + '' 18 + sed -i -e "/def test_fetch/i\\ 19 + \\t@unittest.skip('requires internet')" -e "/def additional_tests():/,+1d" tests.py 20 + ''; 21 + 22 + meta = with stdenv.lib; { 23 + description = "Allows to get the public suffix of a domain name"; 24 + homepage = "https://pypi.python.org/pypi/publicsuffix/"; 25 + license = licenses.mit; 26 + }; 27 + }
+1 -25
pkgs/top-level/python-packages.nix
··· 12684 12684 12685 12685 ptpython = callPackage ../development/python-modules/ptpython {}; 12686 12686 12687 - publicsuffix = buildPythonPackage rec { 12688 - name = "publicsuffix-${version}"; 12689 - version = "1.1.0"; 12690 - 12691 - src = pkgs.fetchurl { 12692 - url = "mirror://pypi/p/publicsuffix/${name}.tar.gz"; 12693 - sha256 = "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf"; 12694 - }; 12695 - 12696 - # fix the ASCII-mode LICENSE file read 12697 - # disable test_fetch and the doctests (which also invoke fetch) 12698 - patchPhase = optionalString isPy3k '' 12699 - sed -i "s/)\.read(/,encoding='utf-8'\0/" setup.py 12700 - '' + '' 12701 - sed -i -e "/def test_fetch/i\\ 12702 - \\t@unittest.skip('requires internet')" -e "/def additional_tests():/,+1d" tests.py 12703 - ''; 12704 - 12705 - meta = { 12706 - description = "Allows to get the public suffix of a domain name"; 12707 - homepage = "http://pypi.python.org/pypi/publicsuffix/"; 12708 - license = licenses.mit; 12709 - }; 12710 - }; 12711 - 12687 + publicsuffix = callPackage ../development/python-modules/publicsuffix {}; 12712 12688 12713 12689 py = callPackage ../development/python-modules/py { }; 12714 12690