Skip to content

Commit

Permalink
python38Packages.yaramod: init at 3.12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
msm-code committed Jan 19, 2023
1 parent 0aa2211 commit d707757
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
46 changes: 46 additions & 0 deletions pkgs/development/python-modules/yaramod/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{ lib
, buildPythonPackage
, cmake
, fetchFromGitHub
, pytestCheckHook
, libxcrypt
}:

buildPythonPackage rec {
pname = "yaramod";
version = "3.12.2";
format = "setuptools";

src = fetchFromGitHub {
owner = "avast";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-1q+lzNtm8qko9ZAxJjkmPOQjHD5GxB6YyEz0tr+QWGk=";
};

dontUseCmakeConfigure = true;

buildInputs = [
libxcrypt
];

nativeBuildInputs = [
cmake
];

checkInputs = [
pytestCheckHook
];

pythonImportsCheck = [
"yaramod"
];

meta = with lib; {
description = " Parsing of YARA rules into AST and building new rulesets in C++. s";
homepage = "https://github.com/avast/yaramod";
changelog = "https://github.com/avast/yaramod/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ msm ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12396,6 +12396,8 @@ self: super: with self; {

yara-python = callPackage ../development/python-modules/yara-python { };

yaramod = callPackage ../development/python-modules/yaramod { };

yarg = callPackage ../development/python-modules/yarg { };

yarl = callPackage ../development/python-modules/yarl { };
Expand Down

0 comments on commit d707757

Please sign in to comment.