nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 48 lines 867 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 cython, 5 fetchFromGitHub, 6 libpcap, 7 pkgconfig, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "pcapy-ng"; 13 version = "1.0.9"; 14 format = "setuptools"; 15 16 src = fetchFromGitHub { 17 owner = "stamparm"; 18 repo = "pcapy-ng"; 19 rev = version; 20 hash = "sha256-6LA2n7Kv0MiZcqUJpi0lDN4Q+GcOttYw7hJwVqK/DU0="; 21 }; 22 23 nativeBuildInputs = [ 24 cython 25 pkgconfig 26 ]; 27 28 buildInputs = [ libpcap ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 preCheck = '' 33 cd tests 34 ''; 35 36 pythonImportsCheck = [ "pcapy" ]; 37 38 doCheck = false; 39 40 enabledTestPaths = [ "pcapytests.py" ]; 41 42 meta = { 43 description = "Module to interface with the libpcap packet capture library"; 44 homepage = "https://github.com/stamparm/pcapy-ng/"; 45 license = lib.licenses.bsd2; 46 maintainers = with lib.maintainers; [ fab ]; 47 }; 48}