2018-02-15 22:40:01 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, isPy3k, isPyPy
|
|
|
|
, matplotlib, pycrypto, ecdsa
|
|
|
|
# Python3: pyx
|
|
|
|
}:
|
2017-10-29 15:47:17 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 12:26:09 +01:00
|
|
|
pname = "scapy";
|
2018-02-15 22:40:01 +01:00
|
|
|
version = "2.3.3";
|
2017-11-09 12:26:09 +01:00
|
|
|
name = pname + "-" + version;
|
2017-10-29 15:47:17 +01:00
|
|
|
|
|
|
|
disabled = isPy3k || isPyPy;
|
|
|
|
|
2018-02-15 22:40:01 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "secdev";
|
|
|
|
repo = "scapy";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1c22407vhksnhc0rwrslnp9zy05qmk2zmdm2imm3iw7g6kx7gak1";
|
2017-10-29 15:47:17 +01:00
|
|
|
};
|
|
|
|
|
2018-02-15 22:40:01 +01:00
|
|
|
# Temporary workaround, only needed for 2.3.3
|
|
|
|
patches = [ ./fix-version-1.patch ./fix-version-2.patch ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ matplotlib pycrypto ecdsa ];
|
|
|
|
|
2017-10-29 15:47:17 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Powerful interactive network packet manipulation program";
|
|
|
|
homepage = http://www.secdev.org/projects/scapy/;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2018-02-15 22:40:01 +01:00
|
|
|
maintainers = with maintainers; [ primeos bjornfor ];
|
2017-10-29 15:47:17 +01:00
|
|
|
};
|
|
|
|
}
|