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
|
{ 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
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user