9 buildPythonPackage rec {
12 format = "setuptools";
14 src = fetchFromGitHub {
17 # No release was tagged and PyPI doesn't contain tests.
18 rev = "968859f0ffb5b7c990506dffe82457b7de23a026";
19 hash = "sha256-NfyEC3qEBm6TjebcDIsoz8tJWaJ625ZFPfx7AMyynWE=";
23 # Add the path to libpcap in the nix-store
24 substituteInPlace setup.py --replace "('/usr', sys.prefix)" "'${libpcap}'"
25 # Remove coverage from test run
26 sed -i "/--cov/d" setup.cfg
29 buildInputs = [ libpcap ];
36 pytestFlagsArray = [ "tests" ];
38 pythonImportsCheck = [ "pcap" ];
41 homepage = "https://github.com/pynetwork/pypcap";
42 description = "Simplified object-oriented Python wrapper for libpcap";
43 license = licenses.bsd3;
44 maintainers = with maintainers; [ oxzi ];