pythonPackages.scapy: Add support for the manuf database from Wireshark
This file contains "Ethernet vendor codes, and well-known MAC addresses".
This commit is contained in:
parent
f9291887af
commit
90b27d020b
@ -6,6 +6,7 @@
|
|||||||
, withVoipSupport ? true, sox
|
, withVoipSupport ? true, sox
|
||||||
, withPlottingSupport ? true, matplotlib
|
, withPlottingSupport ? true, matplotlib
|
||||||
, withGraphicsSupport ? false, pyx, texlive, graphviz, imagemagick
|
, withGraphicsSupport ? false, pyx, texlive, graphviz, imagemagick
|
||||||
|
, withManufDb ? false, wireshark
|
||||||
# 2D/3D graphics and graphs TODO: VPython
|
# 2D/3D graphics and graphs TODO: VPython
|
||||||
# TODO: nmap, numpy
|
# TODO: nmap, numpy
|
||||||
}:
|
}:
|
||||||
@ -26,6 +27,10 @@ buildPythonPackage rec {
|
|||||||
# TODO: Temporary workaround
|
# TODO: Temporary workaround
|
||||||
patches = [ ./fix-version-1.patch ./fix-version-2.patch ];
|
patches = [ ./fix-version-1.patch ./fix-version-2.patch ];
|
||||||
|
|
||||||
|
postPatch = lib.optionalString withManufDb ''
|
||||||
|
substituteInPlace scapy/data.py --replace "/opt/wireshark" "${wireshark}"
|
||||||
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [ pycrypto ecdsa ]
|
propagatedBuildInputs = [ pycrypto ecdsa ]
|
||||||
++ lib.optional withOptionalDeps [ tcpdump ipython ]
|
++ lib.optional withOptionalDeps [ tcpdump ipython ]
|
||||||
++ lib.optional withCryptography [ cryptography ]
|
++ lib.optional withCryptography [ cryptography ]
|
||||||
|
Loading…
Reference in New Issue
Block a user