From 870c0b72faeb3436e6b772974dcd7835a17956d8 Mon Sep 17 00:00:00 2001 From: Michael Daniels Date: Wed, 18 Jun 2025 16:13:43 -0400 Subject: [PATCH] python3Packages.pypcap: drop Does not build with gcc 14, unmaintained upstream. --- .../python-modules/pypcap/default.nix | 47 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 4 -- 3 files changed, 1 insertion(+), 51 deletions(-) delete mode 100644 pkgs/development/python-modules/pypcap/default.nix diff --git a/pkgs/development/python-modules/pypcap/default.nix b/pkgs/development/python-modules/pypcap/default.nix deleted file mode 100644 index 01bf26b699e1..000000000000 --- a/pkgs/development/python-modules/pypcap/default.nix +++ /dev/null @@ -1,47 +0,0 @@ -{ - lib, - buildPythonPackage, - dpkt, - fetchFromGitHub, - libpcap, - pytestCheckHook, -}: - -buildPythonPackage { - pname = "pypcap"; - version = "1.3.0"; - format = "setuptools"; - - src = fetchFromGitHub { - owner = "pynetwork"; - repo = "pypcap"; - # No release was tagged and PyPI doesn't contain tests. - rev = "968859f0ffb5b7c990506dffe82457b7de23a026"; - hash = "sha256-NfyEC3qEBm6TjebcDIsoz8tJWaJ625ZFPfx7AMyynWE="; - }; - - postPatch = '' - # Add the path to libpcap in the nix-store - substituteInPlace setup.py --replace "('/usr', sys.prefix)" "'${libpcap}'" - # Remove coverage from test run - sed -i "/--cov/d" setup.cfg - ''; - - buildInputs = [ libpcap ]; - - nativeCheckInputs = [ - dpkt - pytestCheckHook - ]; - - pytestFlagsArray = [ "tests" ]; - - pythonImportsCheck = [ "pcap" ]; - - meta = with lib; { - homepage = "https://github.com/pynetwork/pypcap"; - description = "Simplified object-oriented Python wrapper for libpcap"; - license = licenses.bsd3; - maintainers = with maintainers; [ oxzi ]; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 0083ce7d6dcc..52611eb4f2a8 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -526,6 +526,7 @@ mapAliases ({ pwndbg = throw "'pwndbg' has been removed due to dependency version incompatibilities that are infeasible to maintain in nixpkgs. Use the downstream flake that pwndbg provides instead: https://github.com/pwndbg/pwndbg"; # Added 2025-02-09 pxml = throw "pxml was removed, because it was disabled on all python version since 3.8 and last updated in 2020."; # added 2024-05-13 py3to2 = throw "py3to2 is unmaintained and source is no longer available"; # added 2024-10-23 + pypcap = throw "pypcap has been removed because it is broken and unmaintained upstream."; # added 2025-06-18 pytricia = throw "pytricia has been removed, since it is unmaintained"; # added 2025-05-25 py-radix = throw "py-radix has been removed, since it abandoned"; # added 2023-07-07 py_stringmatching = py-stringmatching; # added 2023-11-12 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 95f3fe42791a..f74cb3da4391 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13262,10 +13262,6 @@ self: super: with self; { pypca = callPackage ../development/python-modules/pypca { }; - pypcap = callPackage ../development/python-modules/pypcap { - inherit (pkgs) libpcap; # Avoid confusion with python package of the same name - }; - pypck = callPackage ../development/python-modules/pypck { }; pypdf = callPackage ../development/python-modules/pypdf { };