12 buildPythonPackage rec {
17 disabled = pythonOlder "3.7";
20 inherit pname version;
22 hash = "sha256-gEWFqmeOJTVHdjcSOxfVLZtrNSO3CTY1L2VcXOu7q7k=";
29 # tox is listed in build requirements but not actually used to build
30 # keeping it as a requirement breaks the build unnecessarily
32 sed -i "/requires/s/, 'tox>=3.25.1'//" pyproject.toml
33 cat <<EOF >src/libpcap/libpcap.cfg
35 LIBPCAP = ${pkgsLibpcap}/lib/libpcap${stdenv.hostPlatform.extensions.sharedLibrary}
39 propagatedBuildInputs = [
45 # Project has tests, but I can't get them to run even outside of nix
48 pythonImportsCheck = [
53 description = "Python binding for the libpcap C library";
55 Python libpcap module is a low-level binding for libpcap C library.
57 It is an effort to allow python programs full access to the API provided by the well known libpcap Unix C library and by its implementations provided under Win32 systems by such packet capture systems as: Npcap, WinPcap
59 libpcap is a lightweight Python package, based on the ctypes library.
61 It is fully compliant implementation of the original C libpcap from 1.0.0 up to 1.9.0 API and the WinPcap’s 4.1.3 libpcap (1.0.0rel0b) API by implementing whole its functionality in a clean Python instead of C.
63 homepage = "https://github.com/karpierz/libpcap/";
64 license = licenses.bsd3;
65 maintainers = [ teams.ororatech ];