Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / ospd / default.nix
bloba9e6ba10d9811b335556f8ae20fc2d5c35d8a3d4
1 { lib
2 , stdenv
3 , buildPythonPackage
4 , defusedxml
5 , deprecated
6 , fetchFromGitHub
7 , lxml
8 , paramiko
9 , psutil
10 , pytestCheckHook
11 , pythonOlder
14 buildPythonPackage rec {
15   pname = "ospd";
16   version = "21.4.4";
17   format = "setuptools";
19   disabled = pythonOlder "3.7" || stdenv.isDarwin;
21   src = fetchFromGitHub {
22     owner = "greenbone";
23     repo = pname;
24     rev = "refs/tags/v${version}";
25     hash = "sha256-dZgs+G2vJQIKnN9xHcNeNViG7mOIdKb+Ms2AKE+FC4M=";
26   };
28   propagatedBuildInputs = [
29     defusedxml
30     deprecated
31     lxml
32     paramiko
33     psutil
34   ];
36   nativeCheckInputs = [
37     pytestCheckHook
38   ];
40   pythonImportsCheck = [
41     "ospd"
42   ];
44   meta = with lib; {
45     description = "Framework for vulnerability scanners which support OSP";
46     homepage = "https://github.com/greenbone/ospd";
47     changelog = "https://github.com/greenbone/ospd/releases/tag/v${version}";
48     license = with licenses; [ agpl3Plus ];
49     maintainers = with maintainers; [ fab ];
50   };