pythonPackages.scapy: 2.2.0 -> 2.3.3

This commit is contained in:
Michael Weiss
2018-02-15 22:40:01 +01:00
parent ce35114ee4
commit 0be2746fc2
3 changed files with 38 additions and 6 deletions

View File

@@ -1,22 +1,32 @@
{ stdenv, fetchurl, buildPythonPackage, isPy3k, isPyPy }:
{ stdenv, buildPythonPackage, fetchFromGitHub, isPy3k, isPyPy
, matplotlib, pycrypto, ecdsa
# Python3: pyx
}:
buildPythonPackage rec {
pname = "scapy";
version = "2.2.0";
version = "2.3.3";
name = pname + "-" + version;
disabled = isPy3k || isPyPy;
src = fetchurl {
url = "http://www.secdev.org/projects/scapy/files/${name}.tar.gz";
sha256 = "1bqmp0xglkndrqgmybpwmzkv462mir8qlkfwsxwbvvzh9li3ndn5";
src = fetchFromGitHub {
owner = "secdev";
repo = "scapy";
rev = "v${version}";
sha256 = "1c22407vhksnhc0rwrslnp9zy05qmk2zmdm2imm3iw7g6kx7gak1";
};
# 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;
maintainers = with maintainers; [ bjornfor ];
maintainers = with maintainers; [ primeos bjornfor ];
};
}