@ -2,32 +2,56 @@
, buildPythonPackage
, isPy3k
, fetchPypi
, wrapQtAppsHook
# propagates
, pyasn1
, pyasn1-modules
, cxxfilt
, msgpack
, pycparser
# extras: gui
, pyqt5
, pyqtwebengine
# knobs
, withGui ? false
} :
buildPythonPackage rec {
pname = " v i v i s e c t " ;
version = " 1 . 0 . 7 " ;
disabled = isPy3k ;
src = fetchPypi {
inherit pname version ;
sha256 = " 7 2 7 a 2 7 a c 1 e b 9 5 d 5 a 4 1 f 4 4 3 0 f 6 9 1 2 e 7 9 9 4 0 5 2 5 5 5 1 3 1 4 f e 6 8 a 2 8 1 1 f c 9 d 5 1 e a f 2 e 9 " ;
} ;
postPatch = ''
substituteInPlace setup . py \
- - replace ' cxxfilt >= 0 .2 .1 , < 0 .3 . 0 ' ' cxxfilt'
'' ;
nativeBuildInputs = [
wrapQtAppsHook
] ;
propagatedBuildInputs = [
pyasn1
pyasn1-modules
cxxfilt
msgpack
pycparser
] ++ lib . optionals ( withGui ) passthru . extras-require . gui ;
passthru . extras-require . gui = [
pyqt5
pyqtwebengine
] ;
preBuild = ''
sed " s @ = = . * ' @ ' @ " - i setup . py
postFixup = ''
wrapQtApp $ out/bin/vivbin
'' ;
# requires another repo for test files