python312Packages.yara-x: add module to top-level/python-packages.nix (#394504)

This commit is contained in:
Martin Weinelt
2025-04-01 04:36:51 +02:00
committed by GitHub
2 changed files with 6 additions and 4 deletions

View File

@@ -5,7 +5,7 @@
fetchFromGitHub,
pythonOlder,
pytestCheckHook,
yara-x,
pkgs,
}:
buildPythonPackage rec {
pname = "yara-x";
@@ -23,9 +23,9 @@ buildPythonPackage rec {
buildAndTestSubdir = "py";
cargoDeps = rustPlatform.fetchCargoTarball {
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname src version;
hash = "sha256-8s8IUblGJGob/y8x8BoPcXJe83zRmqIZHMxs0iQD7R0=";
hash = "sha256-pD4qyw+TTpmcoX1N3C65VelYszYifm9sFOsEkXEysvo=";
};
nativeBuildInputs = [
@@ -33,7 +33,7 @@ buildPythonPackage rec {
rustPlatform.maturinBuildHook
];
buildInputs = [ yara-x ];
buildInputs = [ pkgs.yara-x ];
pythonImportsCheck = [ "yara_x" ];

View File

@@ -18996,6 +18996,8 @@ self: super: with self; {
yara-python = callPackage ../development/python-modules/yara-python { };
yara-x = callPackage ../development/python-modules/yara-x { };
yaramod = callPackage ../development/python-modules/yaramod { };
yarg = callPackage ../development/python-modules/yarg { };