diff --git a/pkgs/development/python-modules/pypcap/default.nix b/pkgs/development/python-modules/pypcap/default.nix deleted file mode 100644 index 4bf0723dc6ce5..0000000000000 --- a/pkgs/development/python-modules/pypcap/default.nix +++ /dev/null @@ -1,47 +0,0 @@ -{ - lib, - buildPythonPackage, - dpkt, - fetchFromGitHub, - libpcap, - pytestCheckHook, -}: - -buildPythonPackage rec { - pname = "pypcap"; - version = "1.3.0"; - format = "setuptools"; - - src = fetchFromGitHub { - owner = "pynetwork"; - repo = pname; - # 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 052edce0f5725..cc2466fbc39aa 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -514,6 +514,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 py-radix = throw "py-radix has been removed, since it abandoned"; # added 2023-07-07 py_stringmatching = py-stringmatching; # added 2023-11-12 py17track = throw "py17track was removed because Home Assistant switched to pyseventeentrack"; # added 2024-08-08 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8741a79ad920d..ae264ecccc246 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13049,10 +13049,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 { };