diff options
author | Michael Weiss <dev.primeos@gmail.com> | 2018-08-07 19:10:56 +0200 |
---|---|---|
committer | Michael Weiss <dev.primeos@gmail.com> | 2018-08-07 19:14:10 +0200 |
commit | 90b27d020b962567da659689fae28aa45cca1557 (patch) | |
tree | 2c1d748f3b401dd36a2d178eb012793727598d4a /pkgs/development/python-modules/scapy | |
parent | f9291887af76f94ed35f26b2d3c31369ad2a3c46 (diff) | |
download | nixlib-90b27d020b962567da659689fae28aa45cca1557.tar nixlib-90b27d020b962567da659689fae28aa45cca1557.tar.gz nixlib-90b27d020b962567da659689fae28aa45cca1557.tar.bz2 nixlib-90b27d020b962567da659689fae28aa45cca1557.tar.lz nixlib-90b27d020b962567da659689fae28aa45cca1557.tar.xz nixlib-90b27d020b962567da659689fae28aa45cca1557.tar.zst nixlib-90b27d020b962567da659689fae28aa45cca1557.zip |
pythonPackages.scapy: Add support for the manuf database from Wireshark
This file contains "Ethernet vendor codes, and well-known MAC addresses".
Diffstat (limited to 'pkgs/development/python-modules/scapy')
-rw-r--r-- | pkgs/development/python-modules/scapy/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/scapy/default.nix b/pkgs/development/python-modules/scapy/default.nix index 06061eb9ebff..393f8c2c1108 100644 --- a/pkgs/development/python-modules/scapy/default.nix +++ b/pkgs/development/python-modules/scapy/default.nix @@ -6,6 +6,7 @@ , withVoipSupport ? true, sox , withPlottingSupport ? true, matplotlib , withGraphicsSupport ? false, pyx, texlive, graphviz, imagemagick +, withManufDb ? false, wireshark # 2D/3D graphics and graphs TODO: VPython # TODO: nmap, numpy }: @@ -26,6 +27,10 @@ buildPythonPackage rec { # TODO: Temporary workaround patches = [ ./fix-version-1.patch ./fix-version-2.patch ]; + postPatch = lib.optionalString withManufDb '' + substituteInPlace scapy/data.py --replace "/opt/wireshark" "${wireshark}" + ''; + propagatedBuildInputs = [ pycrypto ecdsa ] ++ lib.optional withOptionalDeps [ tcpdump ipython ] ++ lib.optional withCryptography [ cryptography ] |