depot/third_party/nixpkgs/pkgs/tools/security/quark-engine/default.nix
Default email 6d4aeb4377 Project import generated by Copybara.
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
2023-01-11 08:51:40 +01:00

52 lines
1 KiB
Nix

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