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