12 buildPythonPackage rec {
15 format = "setuptools";
17 disabled = pythonOlder "3.7";
19 src = fetchFromGitHub {
23 hash = "sha256-6LA2n7Kv0MiZcqUJpi0lDN4Q+GcOttYw7hJwVqK/DU0=";
31 buildInputs = [ libpcap ];
33 nativeCheckInputs = [ pytestCheckHook ];
39 pythonImportsCheck = [ "pcapy" ];
41 doCheck = pythonOlder "3.10";
43 pytestFlagsArray = [ "pcapytests.py" ];
46 description = "Module to interface with the libpcap packet capture library";
47 homepage = "https://github.com/stamparm/pcapy-ng/";
48 license = licenses.bsd2;
49 maintainers = with maintainers; [ fab ];