2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-14 09:43:14 +00:00
Fabian Affolter 2022-12-11 11:03:33 +01:00
parent a3e65db44a
commit a12c5f1e06

View File

@ -3,18 +3,20 @@
, capstone
, click
, cryptography
, dnfile
, fetchFromGitHub
, pefile
, pycryptodomex
, pyelftools
, pythonOlder
, pytestCheckHook
, typing-extensions
, yara-python
}:
buildPythonPackage rec {
pname = "malduck";
version = "4.2.0";
version = "4.3.0";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -23,13 +25,14 @@ buildPythonPackage rec {
owner = "CERT-Polska";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-UgpblcZ/Jxl3U4256YIHzly7igNXwhTdFN4HOqZBVbM=";
hash = "sha256-1gwJhlhRLnh01AIJj07Wpba8X7V5AfACuJmZX+cfT6Y=";
};
propagatedBuildInputs = [
capstone
click
cryptography
dnfile
pefile
pycryptodomex
pyelftools
@ -39,11 +42,13 @@ buildPythonPackage rec {
postPatch = ''
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
doCheck = false;
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"malduck"