python3Packages.androguard: 3.3.5 -> 3.4.0a1

This commit is contained in:
Fabian Affolter 2021-10-06 10:03:58 +02:00
parent c5477e635e
commit 76b08fcbbf

View file

@ -21,8 +21,8 @@
, codecov
, coverage
, qt5
# This is usually used as a library, and it'd be a shame to force the gui
# libraries to the closure if gui is not desired.
# This is usually used as a library, and it'd be a shame to force the GUI
# libraries to the closure if GUI is not desired.
, withGui ? false
# Tests take a very long time, and currently fail, but next release' tests
# shouldn't fail
@ -30,53 +30,52 @@
}:
buildPythonPackage rec {
version = "3.3.5";
pname = "androguard";
version = "3.4.0a1";
# No tests in pypi tarball
src = fetchFromGitHub {
repo = pname;
owner = pname;
rev = "v${version}";
sha256 = "0zc8m1xnkmhz2v12ddn47q0c01p3sbna2v5npfxhcp88szswlr9y";
sha256 = "1aparxiq11y0hbvkayp92w684nyxyyx7mi0n1x6x51g5z6c58vmy";
};
propagatedBuildInputs = [
future
networkx
pygments
lxml
colorama
matplotlib
asn1crypto
click
pydot
colorama
future
ipython
lxml
matplotlib
networkx
pydot
pygments
] ++ lib.optionals withGui [
pyqt5
pyperclip
];
checkInputs = [
pyqt5
pyperclip
nose
nose-timer
codecov
coverage
mock
nose
nose-timer
pyperclip
pyqt5
python_magic
];
inherit doCheck;
nativeBuildInputs = lib.optionals withGui [ qt5.wrapQtAppsHook ];
nativeBuildInputs = lib.optionals withGui [
qt5.wrapQtAppsHook
];
# If it won't be verbose, you'll see nothing going on for a long time.
checkPhase = ''
runHook preCheck
nosetests --verbosity=3
runHook postCheck
'';
@ -84,10 +83,10 @@ buildPythonPackage rec {
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
'';
meta = {
description = "Tool and python library to interact with Android Files";
meta = with lib; {
description = "Tool and Python library to interact with Android Files";
homepage = "https://github.com/androguard/androguard";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.pmiddend ];
license = licenses.asl20;
maintainers = with maintainers; [ pmiddend ];
};
}