···11-{
22- lib,
33- buildPythonPackage,
44- dpkt,
55- fetchFromGitHub,
66- libpcap,
77- pytestCheckHook,
88-}:
99-1010-buildPythonPackage {
1111- pname = "pypcap";
1212- version = "1.3.0";
1313- format = "setuptools";
1414-1515- src = fetchFromGitHub {
1616- owner = "pynetwork";
1717- repo = "pypcap";
1818- # No release was tagged and PyPI doesn't contain tests.
1919- rev = "968859f0ffb5b7c990506dffe82457b7de23a026";
2020- hash = "sha256-NfyEC3qEBm6TjebcDIsoz8tJWaJ625ZFPfx7AMyynWE=";
2121- };
2222-2323- postPatch = ''
2424- # Add the path to libpcap in the nix-store
2525- substituteInPlace setup.py --replace "('/usr', sys.prefix)" "'${libpcap}'"
2626- # Remove coverage from test run
2727- sed -i "/--cov/d" setup.cfg
2828- '';
2929-3030- buildInputs = [ libpcap ];
3131-3232- nativeCheckInputs = [
3333- dpkt
3434- pytestCheckHook
3535- ];
3636-3737- pytestFlagsArray = [ "tests" ];
3838-3939- pythonImportsCheck = [ "pcap" ];
4040-4141- meta = with lib; {
4242- homepage = "https://github.com/pynetwork/pypcap";
4343- description = "Simplified object-oriented Python wrapper for libpcap";
4444- license = licenses.bsd3;
4545- maintainers = with maintainers; [ oxzi ];
4646- };
4747-}
+1
pkgs/top-level/python-aliases.nix
···526526 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
527527 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
528528 py3to2 = throw "py3to2 is unmaintained and source is no longer available"; # added 2024-10-23
529529+ pypcap = throw "pypcap has been removed because it is broken and unmaintained upstream."; # added 2025-06-18
529530 pytricia = throw "pytricia has been removed, since it is unmaintained"; # added 2025-05-25
530531 py-radix = throw "py-radix has been removed, since it abandoned"; # added 2023-07-07
531532 py_stringmatching = py-stringmatching; # added 2023-11-12
-4
pkgs/top-level/python-packages.nix
···13316133161331713317 pypca = callPackage ../development/python-modules/pypca { };
13318133181331913319- pypcap = callPackage ../development/python-modules/pypcap {
1332013320- inherit (pkgs) libpcap; # Avoid confusion with python package of the same name
1332113321- };
1332213322-1332313319 pypck = callPackage ../development/python-modules/pypck { };
13324133201332513321 pypdf = callPackage ../development/python-modules/pypdf { };