Files
nixpkgs/pkgs/development/python-modules/ospd/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

49 lines
977 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.hostPlatform.isDarwin;
src = fetchFromGitHub {
owner = "greenbone";
repo = "ospd";
tag = "v${version}";
hash = "sha256-dZgs+G2vJQIKnN9xHcNeNViG7mOIdKb+Ms2AKE+FC4M=";
};
propagatedBuildInputs = [
defusedxml
deprecated
lxml
paramiko
psutil
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "ospd" ];
meta = {
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 lib.licenses; [ agpl3Plus ];
maintainers = with lib.maintainers; [ fab ];
};
}