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 { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, setuptools
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, yara , yara
@ -8,8 +9,8 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "yara-python"; pname = "yara-python";
version = "4.3.1"; version = "4.4.0";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -17,9 +18,20 @@ buildPythonPackage rec {
owner = "VirusTotal"; owner = "VirusTotal";
repo = "yara-python"; repo = "yara-python";
rev = "v${version}"; 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 = [ buildInputs = [
yara yara
]; ];