diff options
author | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2018-03-10 12:11:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-10 12:11:05 +0100 |
commit | 66949d24e48d3be38ef69590338a6df9ecc96d5d (patch) | |
tree | 2038581dadb2bd7573edf465710dba4fc740047b /pkgs/top-level | |
parent | 82f0b244bc8f2909a307ab8b0ad24335a6b66173 (diff) | |
parent | 605a373468dcafc0ac4829e2705035efa2583951 (diff) | |
download | nixlib-66949d24e48d3be38ef69590338a6df9ecc96d5d.tar nixlib-66949d24e48d3be38ef69590338a6df9ecc96d5d.tar.gz nixlib-66949d24e48d3be38ef69590338a6df9ecc96d5d.tar.bz2 nixlib-66949d24e48d3be38ef69590338a6df9ecc96d5d.tar.lz nixlib-66949d24e48d3be38ef69590338a6df9ecc96d5d.tar.xz nixlib-66949d24e48d3be38ef69590338a6df9ecc96d5d.tar.zst nixlib-66949d24e48d3be38ef69590338a6df9ecc96d5d.zip |
Merge pull request #36733 from etu/publicsuffix-fixes
publicsuffix: move to own file and fix homepage
Diffstat (limited to 'pkgs/top-level')
-rw-r--r-- | pkgs/top-level/python-packages.nix | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8702a455546e..4a01917edb5c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12693,31 +12693,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 { }; |