mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-04 03:03:42 +00:00
python311Packages.malduck: refactor
This commit is contained in:
parent
d6ac5cabbb
commit
a7c2e7306a
@ -9,6 +9,7 @@
|
||||
, pycryptodomex
|
||||
, pyelftools
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
, pytestCheckHook
|
||||
, typing-extensions
|
||||
, yara-python
|
||||
@ -17,18 +18,22 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "malduck";
|
||||
version = "4.4.1";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "CERT-Polska";
|
||||
repo = pname;
|
||||
repo = "malduck";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-Btx0HxiZWrb0TDpBokQGtBE2EDK0htONe/DwqlPgAd4=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
capstone
|
||||
click
|
||||
cryptography
|
||||
@ -40,12 +45,6 @@ buildPythonPackage rec {
|
||||
yara-python
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "pefile==2019.4.18" "pefile" \
|
||||
--replace "dnfile==0.11.0" "dnfile"
|
||||
'';
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
@ -56,10 +55,10 @@ buildPythonPackage rec {
|
||||
|
||||
meta = with lib; {
|
||||
description = "Helper for malware analysis";
|
||||
mainProgram = "malduck";
|
||||
homepage = "https://github.com/CERT-Polska/malduck";
|
||||
changelog = "https://github.com/CERT-Polska/malduck/releases/tag/v${version}";
|
||||
license = with licenses; [ bsd3 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
mainProgram = "malduck";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user