Files
nixpkgs/pkgs/development/python-modules/malduck/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

60 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
capstone,
click,
cryptography,
dnfile,
fetchFromGitHub,
pefile,
pycryptodomex,
pyelftools,
pythonOlder,
setuptools,
pytestCheckHook,
typing-extensions,
yara-python,
}:
buildPythonPackage rec {
pname = "malduck";
version = "4.4.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "CERT-Polska";
repo = "malduck";
tag = "v${version}";
hash = "sha256-Btx0HxiZWrb0TDpBokQGtBE2EDK0htONe/DwqlPgAd4=";
};
build-system = [ setuptools ];
dependencies = [
capstone
click
cryptography
dnfile
pefile
pycryptodomex
pyelftools
typing-extensions
yara-python
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "malduck" ];
meta = {
description = "Helper for malware analysis";
homepage = "https://github.com/CERT-Polska/malduck";
changelog = "https://github.com/CERT-Polska/malduck/releases/tag/v${version}";
license = with lib.licenses; [ bsd3 ];
maintainers = with lib.maintainers; [ fab ];
mainProgram = "malduck";
};
}