python312Packages.yaramod: 4.0.0 -> 4.0.1 (#353127)

This commit is contained in:
OTABI Tomoya 2024-11-03 11:36:58 +09:00 committed by GitHub
commit 052d009f5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,10 +5,10 @@
fetchFromGitHub, fetchFromGitHub,
pytestCheckHook, pytestCheckHook,
libxcrypt, libxcrypt,
pythonOlder,
gtest, gtest,
pybind11, pybind11,
nlohmann_json, nlohmann_json,
setuptools,
}: }:
let let
@ -21,16 +21,14 @@ let
in in
buildPythonPackage rec { buildPythonPackage rec {
pname = "yaramod"; pname = "yaramod";
version = "4.0.0"; version = "4.0.1";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "avast"; owner = "avast";
repo = pname; repo = "yaramod";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-YbsNFtDk5u5UyTsS1aGKUv/HWYxEwERinZ3G84/mC9o="; hash = "sha256-EkGG3J84mTFnor1YX9B1TyjvW6mCCF/AH904DaVX+VU=";
}; };
postPatch = '' postPatch = ''
@ -48,12 +46,16 @@ buildPythonPackage rec {
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
pog pog
gtest
]; ];
setupPyBuildFlags = [ "--with-unit-tests" ]; build-system = [ setuptools ];
checkInputs = [ pytestCheckHook ]; env.ENV_YARAMOD_BUILD_WITH_UNIT_TESTS = true;
nativeCheckInputs = [
gtest
pytestCheckHook
];
pytestFlagsArray = [ "tests/" ]; pytestFlagsArray = [ "tests/" ];