8 manuf, # remove when buildPythonPackage supports finalAttrs
11 buildPythonPackage rec {
14 format = "setuptools";
16 src = fetchFromGitHub {
20 hash = "sha256-3CFs3aqwE8rZPwU1QBqAGxNHT5jg7ymG12yBD56gTNI=";
23 nativeBuildInputs = [ wireshark-cli ];
26 # Do update while building package from wireshark-cli
27 ./internal_db_update_nix.patch
28 # Fix MANUF_URL for external db update functionality (https://github.com/coolbho3k/manuf/issues/34)
33 ${lib.getExe wireshark-cli} -G manuf > manuf/manuf
34 cat ${wireshark-cli}/share/wireshark/wka >> manuf/manuf
37 nativeCheckInputs = [ pytestCheckHook ];
39 disabledTests = [ "test_update_update" ];
41 pythonImportsCheck = [ "manuf" ];
44 testMacAddress = runCommand "${pname}-test" { } ''
45 ${lib.getExe manuf} BC:EE:7B:00:00:00 > $out
46 [ "$(cat $out | tr -d '\n')" = "Vendor(manuf='ASUSTekC', manuf_long='ASUSTek COMPUTER INC.', comment=None)" ]
51 homepage = "https://github.com/coolbho3k/manuf";
52 description = " Parser library for Wireshark's OUI database";
53 mainProgram = "manuf";
54 platforms = platforms.linux;
55 license = with licenses; [
59 maintainers = with maintainers; [ dsuetin ];