summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorOTABI Tomoya <tomoya.otabi@gmail.com>2024-11-03 11:36:58 +0900
committerGitHub <noreply@github.com>2024-11-03 11:36:58 +0900
commit052d009f5b045ff3801c232e0b1021813b63b863 (patch)
tree163945cbf486f744c75f246639a1b9788763bb43 /pkgs/development/python-modules
parentaa4f075ffacb921d7a1b1f41ac7abd2f4d864b05 (diff)
parentff8466cb40c40e2b430340326c83a623b2e9cd02 (diff)
python312Packages.yaramod: 4.0.0 -> 4.0.1 (#353127)
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/yaramod/default.nix22
1 files changed, 12 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/yaramod/default.nix b/pkgs/development/python-modules/yaramod/default.nix
index 3bf6ba1b7546..87cd9ffcee7f 100644
--- a/pkgs/development/python-modules/yaramod/default.nix
+++ b/pkgs/development/python-modules/yaramod/default.nix
@@ -5,10 +5,10 @@
fetchFromGitHub,
pytestCheckHook,
libxcrypt,
- pythonOlder,
gtest,
pybind11,
nlohmann_json,
+ setuptools,
}:
let
@@ -21,16 +21,14 @@ let
in
buildPythonPackage rec {
pname = "yaramod";
- version = "4.0.0";
- format = "setuptools";
-
- disabled = pythonOlder "3.7";
+ version = "4.0.1";
+ pyproject = true;
src = fetchFromGitHub {
owner = "avast";
- repo = pname;
+ repo = "yaramod";
rev = "refs/tags/v${version}";
- hash = "sha256-YbsNFtDk5u5UyTsS1aGKUv/HWYxEwERinZ3G84/mC9o=";
+ hash = "sha256-EkGG3J84mTFnor1YX9B1TyjvW6mCCF/AH904DaVX+VU=";
};
postPatch = ''
@@ -48,12 +46,16 @@ buildPythonPackage rec {
nativeBuildInputs = [
cmake
pog
- gtest
];
- setupPyBuildFlags = [ "--with-unit-tests" ];
+ build-system = [ setuptools ];
+
+ env.ENV_YARAMOD_BUILD_WITH_UNIT_TESTS = true;
- checkInputs = [ pytestCheckHook ];
+ nativeCheckInputs = [
+ gtest
+ pytestCheckHook
+ ];
pytestFlagsArray = [ "tests/" ];