uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
94
pkgs/development/python-modules/androguard/default.nix
Normal file
94
pkgs/development/python-modules/androguard/default.nix
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, future
|
||||
, networkx
|
||||
, pygments
|
||||
, lxml
|
||||
, colorama
|
||||
, matplotlib
|
||||
, asn1crypto
|
||||
, click
|
||||
, pydot
|
||||
, ipython
|
||||
, packaging
|
||||
, pyqt5
|
||||
, pyperclip
|
||||
, nose
|
||||
, nose-timer
|
||||
, mock
|
||||
, python-magic
|
||||
, 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.
|
||||
, withGui ? false
|
||||
# Tests take a very long time, and currently fail, but next release' tests
|
||||
# shouldn't fail
|
||||
, doCheck ? false
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "androguard";
|
||||
version = "3.4.0a1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = pname;
|
||||
owner = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1aparxiq11y0hbvkayp92w684nyxyyx7mi0n1x6x51g5z6c58vmy";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
packaging
|
||||
] ++ lib.optionals withGui [
|
||||
qt5.wrapQtAppsHook
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
asn1crypto
|
||||
click
|
||||
colorama
|
||||
future
|
||||
ipython
|
||||
lxml
|
||||
matplotlib
|
||||
networkx
|
||||
pydot
|
||||
pygments
|
||||
] ++ lib.optionals withGui [
|
||||
pyqt5
|
||||
pyperclip
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
codecov
|
||||
coverage
|
||||
mock
|
||||
nose
|
||||
nose-timer
|
||||
pyperclip
|
||||
pyqt5
|
||||
python-magic
|
||||
];
|
||||
inherit doCheck;
|
||||
|
||||
# If it won't be verbose, you'll see nothing going on for a long time.
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
nosetests --verbosity=3
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
preFixup = lib.optionalString withGui ''
|
||||
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tool and Python library to interact with Android Files";
|
||||
homepage = "https://github.com/androguard/androguard";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ pmiddend ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue