2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pyhamcrest,
|
|
|
|
pytestCheckHook,
|
|
|
|
requests,
|
|
|
|
requests-mock,
|
|
|
|
six,
|
2021-10-01 09:20:50 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-owasp-zap-v2-4";
|
|
|
|
version = "0.0.18";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-10-01 09:20:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zaproxy";
|
|
|
|
repo = "zap-api-python";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0b46m9s0vwaaq8vhiqspdr2ns9qdw65fnjh8mf58gjinlsd27ygk";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-10-01 09:20:50 +00:00
|
|
|
pyhamcrest
|
|
|
|
pytestCheckHook
|
|
|
|
requests-mock
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "zapv2" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library to access the OWASP ZAP API";
|
|
|
|
homepage = "https://github.com/zaproxy/zap-api-python";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|