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 { buildPythonPackage rec {
pname = "scapy"; pname = "scapy";
version = "2.2.0"; version = "2.3.3";
name = pname + "-" + version; name = pname + "-" + version;
disabled = isPy3k || isPyPy; disabled = isPy3k || isPyPy;
src = fetchurl { src = fetchFromGitHub {
url = "http://www.secdev.org/projects/scapy/files/${name}.tar.gz"; owner = "secdev";
sha256 = "1bqmp0xglkndrqgmybpwmzkv462mir8qlkfwsxwbvvzh9li3ndn5"; 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; { meta = with stdenv.lib; {
description = "Powerful interactive network packet manipulation program"; description = "Powerful interactive network packet manipulation program";
homepage = http://www.secdev.org/projects/scapy/; homepage = http://www.secdev.org/projects/scapy/;
license = licenses.gpl2; license = licenses.gpl2;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ bjornfor ]; maintainers = with maintainers; [ primeos bjornfor ];
}; };
} }

View File

@ -0,0 +1,11 @@
--- a/setup.py 2018-02-15 22:14:08.531591678 +0100
+++ b/setup.py 2018-02-15 22:14:57.947703737 +0100
@@ -47,7 +47,7 @@
setup(
name='scapy',
- version=__import__('scapy').VERSION,
+ version='2.3.3',
packages=[
'scapy',
'scapy/arch',

View File

@ -0,0 +1,11 @@
--- a/scapy/__init__.py 2017-12-29 18:57:35.315472160 +0100
+++ b/scapy/__init__.py 2018-02-15 22:36:43.102132489 +0100
@@ -73,7 +73,7 @@
tag = f.read()
return tag
except:
- return 'unknown.version'
+ return '2.3.3'
VERSION = _version()