git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #137136 from fabaff/notus-scanner

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

commit8ef88fb10bc4e26ea3f18c34b73edf2e96ef5d7a authorFabian Affolter <fabian@affolter-engineering.ch> dateWed 22 Sep 2021, 19:22 (5 years ago) parentb473d3fb51ce74
3 files changed+60
pkgs/development/python-modules/notus-scanner/default.nix+56 pkgs/top-level/all-packages.nix+2 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/notus-scanner/default.nixnew file+56
@@ -0,0 +1,56 @@
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+}
pkgs/top-level/all-packages.nix+2
@@ -30489,6 +30489,8 @@ with pkgs;
3048930489
3049030490 nota = haskellPackages.callPackage ../applications/science/math/nota { };
3049130491
30492+ notus-scanner = with python3Packages; toPythonApplication notus-scanner;
30493+
3049230494 openblas = callPackage ../development/libraries/science/math/openblas { };
3049330495
3049430496 # A version of OpenBLAS using 32-bit integers on all platforms for compatibility with
pkgs/top-level/python-packages.nix+2
@@ -5006,6 +5006,8 @@ in {
50065006
50075007 nototools = callPackage ../data/fonts/noto-fonts/tools.nix { };
50085008
5009+ notus-scanner = callPackage ../development/python-modules/notus-scanner { };
5010+
50095011 nplusone = callPackage ../development/python-modules/nplusone { };
50105012
50115013 npyscreen = callPackage ../development/python-modules/npyscreen { };