diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2024-03-04 08:37:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-04 08:37:36 +0100 |
commit | d3491342d6d9a9c57571d406454aed18df0f5b36 (patch) | |
tree | c9dc8f73a699f53023add170e7e548956eddfaba | |
parent | 6b6cabaffd3f322466d45f08707b3cc05398e3f3 (diff) | |
parent | a22de27eaae2225836e5a56f62778911d51b01f2 (diff) | |
download | nixlib-d3491342d6d9a9c57571d406454aed18df0f5b36.tar nixlib-d3491342d6d9a9c57571d406454aed18df0f5b36.tar.gz nixlib-d3491342d6d9a9c57571d406454aed18df0f5b36.tar.bz2 nixlib-d3491342d6d9a9c57571d406454aed18df0f5b36.tar.lz nixlib-d3491342d6d9a9c57571d406454aed18df0f5b36.tar.xz nixlib-d3491342d6d9a9c57571d406454aed18df0f5b36.tar.zst nixlib-d3491342d6d9a9c57571d406454aed18df0f5b36.zip |
Merge pull request #292806 from mjoerg/yaralyzer-0.9.3
yaralyzer: 0.9.0 -> 0.9.3
-rw-r--r-- | pkgs/tools/security/yaralyzer/default.nix | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/pkgs/tools/security/yaralyzer/default.nix b/pkgs/tools/security/yaralyzer/default.nix index 4379bbc5c63c..ddfc828741e5 100644 --- a/pkgs/tools/security/yaralyzer/default.nix +++ b/pkgs/tools/security/yaralyzer/default.nix @@ -3,16 +3,31 @@ , fetchFromGitHub }: -python3.pkgs.buildPythonApplication rec { +let + python = python3.override { + packageOverrides = self: super: { + yara-python = super.yara-python.overridePythonAttrs (oldAttrs: rec { + version = "4.2.3"; + src = fetchFromGitHub { + owner = "VirusTotal"; + repo = "yara-python"; + rev = "v${version}"; + hash = "sha256-spUQuezQMqaG1hboM0/Gs7siCM6x0b40O+sV7qGGBng="; + }; + }); + }; + }; +in +python.pkgs.buildPythonApplication rec { pname = "yaralyzer"; - version = "0.9.0"; - format = "pyproject"; + version = "0.9.3"; + pyproject = true; src = fetchFromGitHub { owner = "michelcrypt4d4mus"; repo = "yaralyzer"; rev = "refs/tags/v${version}"; - hash = "sha256-QsMO/fnHy4puuToUHSS05fWnXHdAVnWFFBVq3cb0Zj4="; + hash = "sha256-KGQNonzAZp8c0a3Rjb1WfsEkx5srgRzZfGR3gfNEdzY="; }; pythonRelaxDeps = [ @@ -20,12 +35,12 @@ python3.pkgs.buildPythonApplication rec { "rich" ]; - nativeBuildInputs = with python3.pkgs; [ + nativeBuildInputs = with python.pkgs; [ poetry-core pythonRelaxDepsHook ]; - propagatedBuildInputs = with python3.pkgs; [ + propagatedBuildInputs = with python.pkgs; [ chardet python-dotenv rich @@ -43,5 +58,6 @@ python3.pkgs.buildPythonApplication rec { changelog = "https://github.com/michelcrypt4d4mus/yaralyzer/blob/${version}/CHANGELOG.md"; license = licenses.gpl3Only; maintainers = with maintainers; [ fab ]; + mainProgram = "yaralyze"; }; } |