2021-10-08 15:17:17 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gitMinimal
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "quark-engine";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "22.12.1";
|
2022-01-07 04:07:37 +00:00
|
|
|
format = "setuptools";
|
2021-10-08 15:17:17 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2023-01-11 07:51:40 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "sha256-PdLnR01BDfb3+WsOvOZTsDHWXRNK0pLTxCXOuWik0L0=";
|
2021-10-08 15:17:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
androguard
|
|
|
|
click
|
|
|
|
colorama
|
|
|
|
gitMinimal
|
|
|
|
graphviz
|
|
|
|
pandas
|
|
|
|
plotly
|
|
|
|
prettytable
|
|
|
|
prompt-toolkit
|
|
|
|
rzpipe
|
|
|
|
tqdm
|
|
|
|
];
|
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "prompt-toolkit==3.0.19" "prompt-toolkit>=3.0.19"
|
|
|
|
'';
|
|
|
|
|
2021-10-08 15:17:17 +00:00
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"quark"
|
|
|
|
];
|
2021-10-08 15:17:17 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Android malware (analysis and scoring) system";
|
|
|
|
homepage = "https://quark-engine.readthedocs.io/";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/quark-engine/quark-engine/releases/tag/v${version}";
|
2021-10-08 15:17:17 +00:00
|
|
|
license = with licenses; [ gpl3Only ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|