Merge pull request #283914 from NickCao/yara-python

python311Packages.yara-python: 4.3.1 -> 4.4.0
This commit is contained in:
Fabian Affolter 2024-01-26 08:05:11 +01:00 committed by GitHub
commit 8ef07bd0ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pytestCheckHook
, pythonOlder
, yara
@ -8,8 +9,8 @@
buildPythonPackage rec {
pname = "yara-python";
version = "4.3.1";
format = "setuptools";
version = "4.4.0";
pyproject = true;
disabled = pythonOlder "3.7";
@ -17,9 +18,20 @@ buildPythonPackage rec {
owner = "VirusTotal";
repo = "yara-python";
rev = "v${version}";
hash = "sha256-WjH27pOOBXmbj8ghr42TLTp8eAKiTq4eRTYnim56J/8=";
hash = "sha256-Fl/0ordXDKC1CBBmPx0fEwZZjqSiMxnwNvQqD98MjRo=";
};
# undefined symbol: yr_finalize
# https://github.com/VirusTotal/yara-python/issues/7
postPatch = ''
substituteInPlace setup.py \
--replace "include_dirs=['yara/libyara/include', 'yara/libyara/', '.']" "libraries = ['yara']"
'';
nativeBuildInputs = [
setuptools
];
buildInputs = [
yara
];