Fabian Affolter 2022-12-11 11:03:33 +01:00
parent a3e65db44a
commit a12c5f1e06

View File

@ -3,18 +3,20 @@
, capstone , capstone
, click , click
, cryptography , cryptography
, dnfile
, fetchFromGitHub , fetchFromGitHub
, pefile , pefile
, pycryptodomex , pycryptodomex
, pyelftools , pyelftools
, pythonOlder , pythonOlder
, pytestCheckHook
, typing-extensions , typing-extensions
, yara-python , yara-python
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "malduck"; pname = "malduck";
version = "4.2.0"; version = "4.3.0";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -23,13 +25,14 @@ buildPythonPackage rec {
owner = "CERT-Polska"; owner = "CERT-Polska";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-UgpblcZ/Jxl3U4256YIHzly7igNXwhTdFN4HOqZBVbM="; hash = "sha256-1gwJhlhRLnh01AIJj07Wpba8X7V5AfACuJmZX+cfT6Y=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
capstone capstone
click click
cryptography cryptography
dnfile
pefile pefile
pycryptodomex pycryptodomex
pyelftools pyelftools
@ -39,11 +42,13 @@ buildPythonPackage rec {
postPatch = '' postPatch = ''
substituteInPlace requirements.txt \ substituteInPlace requirements.txt \
--replace "pefile==2019.4.18" "pefile" --replace "pefile==2019.4.18" "pefile" \
--replace "dnfile==0.11.0" "dnfile"
''; '';
# Project has no tests. They will come with the next release checkInputs = [
doCheck = false; pytestCheckHook
];
pythonImportsCheck = [ pythonImportsCheck = [
"malduck" "malduck"