2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
capstone,
|
|
|
|
click,
|
|
|
|
cryptography,
|
|
|
|
dnfile,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pefile,
|
|
|
|
pycryptodomex,
|
|
|
|
pyelftools,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
pytestCheckHook,
|
|
|
|
typing-extensions,
|
|
|
|
yara-python,
|
2021-04-17 00:35:05 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "malduck";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "4.4.1";
|
|
|
|
pyproject = true;
|
2022-05-18 14:49:53 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-04-17 00:35:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CERT-Polska";
|
2024-05-15 15:35:15 +00:00
|
|
|
repo = "malduck";
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-Btx0HxiZWrb0TDpBokQGtBE2EDK0htONe/DwqlPgAd4=";
|
2021-04-17 00:35:05 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2021-04-17 00:35:05 +00:00
|
|
|
capstone
|
|
|
|
click
|
|
|
|
cryptography
|
2022-12-17 10:02:37 +00:00
|
|
|
dnfile
|
2021-04-17 00:35:05 +00:00
|
|
|
pefile
|
|
|
|
pycryptodomex
|
|
|
|
pyelftools
|
|
|
|
typing-extensions
|
|
|
|
yara-python
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-07-03 03:11:41 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "malduck" ];
|
2021-04-17 00:35:05 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Helper for malware analysis";
|
|
|
|
homepage = "https://github.com/CERT-Polska/malduck";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/CERT-Polska/malduck/releases/tag/v${version}";
|
2021-04-17 00:35:05 +00:00
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-05-15 15:35:15 +00:00
|
|
|
mainProgram = "malduck";
|
2021-04-17 00:35:05 +00:00
|
|
|
};
|
|
|
|
}
|