From a29f45eeb001c8cb02a5fa989a7c49415e5299c4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 19 Sep 2021 11:04:12 +0200 Subject: [PATCH] python3Packages.ospd: init at 21.4.3 --- .../python-modules/ospd/default.nix | 53 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 55 insertions(+) create mode 100644 pkgs/development/python-modules/ospd/default.nix diff --git a/pkgs/development/python-modules/ospd/default.nix b/pkgs/development/python-modules/ospd/default.nix new file mode 100644 index 000000000000..2c90a0e066d7 --- /dev/null +++ b/pkgs/development/python-modules/ospd/default.nix @@ -0,0 +1,53 @@ +{ lib +, stdenv +, buildPythonPackage +, defusedxml +, deprecated +, fetchFromGitHub +, lxml +, paramiko +, poetry +, psutil +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "ospd"; + version = "21.4.3"; + format = "pyproject"; + + disabled = pythonOlder "3.7" || stdenv.isDarwin; + + src = fetchFromGitHub { + owner = "greenbone"; + repo = pname; + rev = "v${version}"; + sha256 = "1i4nfvxgxibqmqb6jwih951960sm2zy00i1wnjfnwb6za1xkpbkp"; + }; + + nativeBuildInputs = [ + poetry + ]; + + propagatedBuildInputs = [ + defusedxml + deprecated + lxml + paramiko + psutil + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ "ospd" ]; + + meta = with lib; { + description = "Framework for vulnerability scanners which support OSP"; + homepage = "https://github.com/greenbone/ospd"; + license = with licenses; [ agpl3Plus ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8f6e567cf3be..8e461ef843f8 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5202,6 +5202,8 @@ in { oslotest = callPackage ../development/python-modules/oslotest { }; + ospd = callPackage ../development/python-modules/ospd { }; + osqp = callPackage ../development/python-modules/osqp { }; outcome = callPackage ../development/python-modules/outcome { };