nixpkgs/pkgs/development/python-modules/scapy/default.nix

33 lines
864 B
Nix
Raw Normal View History

2018-02-15 21:40:01 +00:00
{ stdenv, buildPythonPackage, fetchFromGitHub, isPy3k, isPyPy
, matplotlib, pycrypto, ecdsa
# Python3: pyx
}:
buildPythonPackage rec {
pname = "scapy";
2018-02-15 21:40:01 +00:00
version = "2.3.3";
name = pname + "-" + version;
disabled = isPy3k || isPyPy;
2018-02-15 21:40:01 +00:00
src = fetchFromGitHub {
owner = "secdev";
repo = "scapy";
rev = "v${version}";
sha256 = "1c22407vhksnhc0rwrslnp9zy05qmk2zmdm2imm3iw7g6kx7gak1";
};
2018-02-15 21:40:01 +00:00
# Temporary workaround, only needed for 2.3.3
patches = [ ./fix-version-1.patch ./fix-version-2.patch ];
propagatedBuildInputs = [ matplotlib pycrypto ecdsa ];
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 21:40:01 +00:00
maintainers = with maintainers; [ primeos bjornfor ];
};
}