diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2021-09-22 19:22:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-22 19:22:57 +0200 |
commit | 8ef88fb10bc4e26ea3f18c34b73edf2e96ef5d7a (patch) | |
tree | daaeec029ced444b4762c691cf37edec516c7cb4 | |
parent | b473d3fb0f7e9cb2a40b9b29579114f01010809f (diff) | |
parent | b51ce741065958799177dc8aaef1a2b7cde4731a (diff) | |
download | nixpkgs-8ef88fb10bc4e26ea3f18c34b73edf2e96ef5d7a.tar nixpkgs-8ef88fb10bc4e26ea3f18c34b73edf2e96ef5d7a.tar.gz nixpkgs-8ef88fb10bc4e26ea3f18c34b73edf2e96ef5d7a.tar.bz2 nixpkgs-8ef88fb10bc4e26ea3f18c34b73edf2e96ef5d7a.tar.lz nixpkgs-8ef88fb10bc4e26ea3f18c34b73edf2e96ef5d7a.tar.xz nixpkgs-8ef88fb10bc4e26ea3f18c34b73edf2e96ef5d7a.tar.zst nixpkgs-8ef88fb10bc4e26ea3f18c34b73edf2e96ef5d7a.zip |
Merge pull request #137136 from fabaff/notus-scanner
python3Packages.notus-scanner: init at unstable-2021-09-05
-rw-r--r-- | pkgs/development/python-modules/notus-scanner/default.nix | 56 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
3 files changed, 60 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/notus-scanner/default.nix b/pkgs/development/python-modules/notus-scanner/default.nix new file mode 100644 index 00000000000..dbf01f3698d --- /dev/null +++ b/pkgs/development/python-modules/notus-scanner/default.nix @@ -0,0 +1,56 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, fetchpatch +, paho-mqtt +, poetry-core +, psutil +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "notus-scanner"; + version = "unstable-2021-09-05"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "greenbone"; + repo = pname; + rev = "049f9a5e6439e4e5113e3b8f30b25ead12d42a56"; + sha256 = "1fjxyn8wg2kf6xy3pbh7d7yn20dk529p03xpqyz7s40n9nsxhnza"; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + paho-mqtt + psutil + ]; + + checkInputs = [ + 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" ]; + + meta = with lib; { + description = "Helper to create results from local security checks"; + homepage = "https://github.com/greenbone/notus-scanner"; + license = with licenses; [ agpl3Plus ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c7075fd5d71..5c1caa45568 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -30489,6 +30489,8 @@ with pkgs; nota = haskellPackages.callPackage ../applications/science/math/nota { }; + notus-scanner = with python3Packages; toPythonApplication notus-scanner; + openblas = callPackage ../development/libraries/science/math/openblas { }; # A version of OpenBLAS using 32-bit integers on all platforms for compatibility with diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 32f200f2730..74d681d7b91 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5006,6 +5006,8 @@ in { nototools = callPackage ../data/fonts/noto-fonts/tools.nix { }; + notus-scanner = callPackage ../development/python-modules/notus-scanner { }; + nplusone = callPackage ../development/python-modules/nplusone { }; npyscreen = callPackage ../development/python-modules/npyscreen { }; |