mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +03:00
Merge pull request #283914 from NickCao/yara-python
python311Packages.yara-python: 4.3.1 -> 4.4.0
This commit is contained in:
commit
8ef07bd0ea
@ -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
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user