Unverified Commit f3beed9a authored by jopejoe1's avatar jopejoe1 Committed by GitHub
Browse files

python3Packages.publicsuffix: drop (#472253)

parents 6ab1b6fd b0056bbd
Loading
Loading
Loading
Loading
+0 −41
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  pythonOlder,
  publicsuffix-list,
}:

buildPythonPackage rec {
  pname = "publicsuffix";
  version = "1.1.1";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-Is4dZatq9emyEi4kQ/rNuT+1xKvyQTgJnLEP55ifQ7Y=";
  };

  # disable test_fetch and the doctests (which also invoke fetch)
  postPatch = ''
    sed -i -e "/def test_fetch/i\\
    \\t@unittest.skip('requires internet')" -e "/def additional_tests():/,+1d" tests.py

    rm publicsuffix/public_suffix_list.dat
    ln -s ${publicsuffix-list}/share/publicsuffix/public_suffix_list.dat publicsuffix/public_suffix_list.dat
  '';

  build-system = [ setuptools ];

  pythonImportsCheck = [ "publicsuffix" ];

  meta = {
    description = "Allows to get the public suffix of a domain name";
    homepage = "https://pypi.python.org/pypi/publicsuffix/";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -315,6 +315,7 @@ mapAliases {
  protonvpn-nm-lib = throw "protonvpn-nm-lib source code was removed from upstream"; # Added 2025-10-16
  proxy_tools = throw "'proxy_tools' has been renamed to/replaced by 'proxy-tools'"; # Converted to throw 2025-10-29
  ptable = throw "ptable has been removed, as it is unmaintained and broken"; # added 2025-05-25
  publicsuffix = throw "'publicsuffix' is unmaintained since 2019. The API compatible publicsuffix2 should be used instead."; # Added 2025-12-19
  push-receiver = throw "push-receiver has been removed since it is unmaintained for 3 years"; # added 2025-05-17
  pushbullet = throw "'pushbullet' has been renamed to/replaced by 'pushbullet-py'"; # Converted to throw 2025-10-29
  Pweave = throw "'Pweave' has been renamed to/replaced by 'pweave'"; # Converted to throw 2025-10-29
+0 −2
Original line number Diff line number Diff line
@@ -12646,8 +12646,6 @@ self: super: with self; {
  ptyprocess = callPackage ../development/python-modules/ptyprocess { };
  publicsuffix = callPackage ../development/python-modules/publicsuffix { };
  publicsuffix2 = callPackage ../development/python-modules/publicsuffix2 { };
  publicsuffixlist = callPackage ../development/python-modules/publicsuffixlist { };