1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pyhamcrest,
6 pytestCheckHook,
7 requests,
8 requests-mock,
9 six,
10}:
11
12buildPythonPackage rec {
13 pname = "python-owasp-zap-v2-4";
14 version = "0.4.0";
15 format = "setuptools";
16
17 src = fetchFromGitHub {
18 owner = "zaproxy";
19 repo = "zap-api-python";
20 tag = version;
21 sha256 = "sha256-UG8+0jJwnywvuc68/9r10kKMqxNIOg5mIdPt2Fx2BZA=";
22 };
23
24 propagatedBuildInputs = [
25 requests
26 six
27 ];
28
29 nativeCheckInputs = [
30 pyhamcrest
31 pytestCheckHook
32 requests-mock
33 ];
34
35 pythonImportsCheck = [ "zapv2" ];
36
37 meta = with lib; {
38 description = "Python library to access the OWASP ZAP API";
39 homepage = "https://github.com/zaproxy/zap-api-python";
40 license = licenses.asl20;
41 maintainers = with maintainers; [ fab ];
42 };
43}