diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2023-04-04 22:53:05 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2023-04-04 22:53:05 +0200 |
commit | 3ec7b3b91f7854bed5490c969a234c11b82a27fd (patch) | |
tree | 90f4060e88d003e7c338d412bc6632751a741d85 | |
parent | 0d5c1ac149a5c16e0b6eb415638c5f54adef7753 (diff) | |
download | nixlib-3ec7b3b91f7854bed5490c969a234c11b82a27fd.tar nixlib-3ec7b3b91f7854bed5490c969a234c11b82a27fd.tar.gz nixlib-3ec7b3b91f7854bed5490c969a234c11b82a27fd.tar.bz2 nixlib-3ec7b3b91f7854bed5490c969a234c11b82a27fd.tar.lz nixlib-3ec7b3b91f7854bed5490c969a234c11b82a27fd.tar.xz nixlib-3ec7b3b91f7854bed5490c969a234c11b82a27fd.tar.zst nixlib-3ec7b3b91f7854bed5490c969a234c11b82a27fd.zip |
python310Packages.notus-scanner: unstable-2021-09-05 -> 22.4.5
Changelog: https://github.com/greenbone/notus-scanner/releases/tag/v22.4.5
-rw-r--r-- | pkgs/development/python-modules/notus-scanner/default.nix | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/pkgs/development/python-modules/notus-scanner/default.nix b/pkgs/development/python-modules/notus-scanner/default.nix index d038504205fa..f4a24c8dc01c 100644 --- a/pkgs/development/python-modules/notus-scanner/default.nix +++ b/pkgs/development/python-modules/notus-scanner/default.nix @@ -1,17 +1,20 @@ { lib , buildPythonPackage , fetchFromGitHub -, fetchpatch , paho-mqtt , poetry-core , psutil , pytestCheckHook +, python-gnupg , pythonOlder +, pythonRelaxDepsHook +, sentry-sdk +, tomli }: buildPythonPackage rec { pname = "notus-scanner"; - version = "unstable-2021-09-05"; + version = "22.4.5"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -19,37 +22,40 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "greenbone"; repo = pname; - rev = "049f9a5e6439e4e5113e3b8f30b25ead12d42a56"; - sha256 = "1fjxyn8wg2kf6xy3pbh7d7yn20dk529p03xpqyz7s40n9nsxhnza"; + rev = "refs/tags/v${version}"; + hash = "sha256-bGuD3uDteXQdj3pfnRemKWffWVbQSHda/RrfhAXB3fM="; }; + pythonRelaxDeps = [ + "python-gnupg" + ]; + nativeBuildInputs = [ poetry-core + pythonRelaxDepsHook ]; propagatedBuildInputs = [ paho-mqtt psutil + python-gnupg + sentry-sdk + ] ++ lib.optionals (pythonOlder "3.11") [ + tomli ]; nativeCheckInputs = [ pytestCheckHook ]; - patches = [ - # Switch to poetry-core, https://github.com/greenbone/notus-scanner/pull/31 - (fetchpatch { - name = "switch-to-poetry-core.patch"; - url = "https://github.com/greenbone/notus-scanner/commit/b52eea317faca30d411096044f9e5ea20b58da65.patch"; - sha256 = "0q11aslhva47kkpsnpayra7spa849j894vqv34pjqhcnlyipqw6d"; - }) + pythonImportsCheck = [ + "notus.scanner" ]; - pythonImportsCheck = [ "notus.scanner" ]; - meta = with lib; { description = "Helper to create results from local security checks"; homepage = "https://github.com/greenbone/notus-scanner"; + changelog = "https://github.com/greenbone/notus-scanner/releases/tag/v${version}"; license = with licenses; [ agpl3Plus ]; maintainers = with maintainers; [ fab ]; }; |