Merge pull request #137136 from fabaff/notus-scanner

python3Packages.notus-scanner: init at unstable-2021-09-05

authored by Fabian Affolter and committed by GitHub 8ef88fb1 b473d3fb

+60
+56
pkgs/development/python-modules/notus-scanner/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , fetchpatch 5 + , paho-mqtt 6 + , poetry-core 7 + , psutil 8 + , pytestCheckHook 9 + , pythonOlder 10 + }: 11 + 12 + buildPythonPackage rec { 13 + pname = "notus-scanner"; 14 + version = "unstable-2021-09-05"; 15 + format = "pyproject"; 16 + 17 + disabled = pythonOlder "3.7"; 18 + 19 + src = fetchFromGitHub { 20 + owner = "greenbone"; 21 + repo = pname; 22 + rev = "049f9a5e6439e4e5113e3b8f30b25ead12d42a56"; 23 + sha256 = "1fjxyn8wg2kf6xy3pbh7d7yn20dk529p03xpqyz7s40n9nsxhnza"; 24 + }; 25 + 26 + nativeBuildInputs = [ 27 + poetry-core 28 + ]; 29 + 30 + propagatedBuildInputs = [ 31 + paho-mqtt 32 + psutil 33 + ]; 34 + 35 + checkInputs = [ 36 + pytestCheckHook 37 + ]; 38 + 39 + patches = [ 40 + # Switch to poetry-core, https://github.com/greenbone/notus-scanner/pull/31 41 + (fetchpatch { 42 + name = "switch-to-poetry-core.patch"; 43 + url = "https://github.com/greenbone/notus-scanner/commit/b52eea317faca30d411096044f9e5ea20b58da65.patch"; 44 + sha256 = "0q11aslhva47kkpsnpayra7spa849j894vqv34pjqhcnlyipqw6d"; 45 + }) 46 + ]; 47 + 48 + pythonImportsCheck = [ "notus.scanner" ]; 49 + 50 + meta = with lib; { 51 + description = "Helper to create results from local security checks"; 52 + homepage = "https://github.com/greenbone/notus-scanner"; 53 + license = with licenses; [ agpl3Plus ]; 54 + maintainers = with maintainers; [ fab ]; 55 + }; 56 + }
+2
pkgs/top-level/all-packages.nix
··· 30489 30489 30490 30490 nota = haskellPackages.callPackage ../applications/science/math/nota { }; 30491 30491 30492 + notus-scanner = with python3Packages; toPythonApplication notus-scanner; 30493 + 30492 30494 openblas = callPackage ../development/libraries/science/math/openblas { }; 30493 30495 30494 30496 # A version of OpenBLAS using 32-bit integers on all platforms for compatibility with
+2
pkgs/top-level/python-packages.nix
··· 5006 5006 5007 5007 nototools = callPackage ../data/fonts/noto-fonts/tools.nix { }; 5008 5008 5009 + notus-scanner = callPackage ../development/python-modules/notus-scanner { }; 5010 + 5009 5011 nplusone = callPackage ../development/python-modules/nplusone { }; 5010 5012 5011 5013 npyscreen = callPackage ../development/python-modules/npyscreen { };