2021-09-22 15:38:15 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, defusedxml
|
|
|
|
, deprecated
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lxml
|
|
|
|
, paramiko
|
|
|
|
, psutil
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ospd";
|
2021-10-14 00:43:12 +00:00
|
|
|
version = "21.4.4";
|
|
|
|
format = "setuptools";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7" || stdenv.isDarwin;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "greenbone";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-10-14 00:43:12 +00:00
|
|
|
sha256 = "sha256-dZgs+G2vJQIKnN9xHcNeNViG7mOIdKb+Ms2AKE+FC4M=";
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
defusedxml
|
|
|
|
deprecated
|
|
|
|
lxml
|
|
|
|
paramiko
|
|
|
|
psutil
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"ospd"
|
|
|
|
];
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|