fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
48 lines
975 B
Nix
48 lines
975 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
defusedxml,
|
|
deprecated,
|
|
fetchFromGitHub,
|
|
lxml,
|
|
paramiko,
|
|
psutil,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ospd";
|
|
version = "21.4.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7" || stdenv.isDarwin;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "greenbone";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-dZgs+G2vJQIKnN9xHcNeNViG7mOIdKb+Ms2AKE+FC4M=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
defusedxml
|
|
deprecated
|
|
lxml
|
|
paramiko
|
|
psutil
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "ospd" ];
|
|
|
|
meta = with lib; {
|
|
description = "Framework for vulnerability scanners which support OSP";
|
|
homepage = "https://github.com/greenbone/ospd";
|
|
changelog = "https://github.com/greenbone/ospd/releases/tag/v${version}";
|
|
license = with licenses; [ agpl3Plus ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|