1{
2 lib,
3 appdirs,
4 buildPythonPackage,
5 certifi,
6 chardet,
7 fetchFromGitHub,
8 idna,
9 packaging,
10 pyparsing,
11 python-dateutil,
12 pythonOlder,
13 requests,
14 setuptools,
15 six,
16 urllib3,
17}:
18
19buildPythonPackage rec {
20 pname = "gophish";
21 version = "0.5.1";
22 pyproject = true;
23
24 disabled = pythonOlder "3.7";
25
26 src = fetchFromGitHub {
27 owner = "gophish";
28 repo = "api-client-python";
29 tag = "v${version}";
30 hash = "sha256-ITwwU/Xixyi9JSWbYf606HB7S5E4jiI0lEYcOdNg3mo=";
31 };
32
33 pythonRelaxDeps = true;
34
35 build-system = [ setuptools ];
36
37 dependencies = [
38 appdirs
39 certifi
40 chardet
41 idna
42 packaging
43 pyparsing
44 python-dateutil
45 requests
46 six
47 urllib3
48 ];
49
50 pythonImportsCheck = [ "gophish" ];
51
52 # Module has no test
53 doCheck = false;
54
55 meta = with lib; {
56 description = "Module to interact with Gophish";
57 homepage = "https://github.com/gophish/api-client-python";
58 changelog = "https://github.com/gophish/api-client-python/releases/tag/v${version}";
59 license = licenses.mit;
60 maintainers = with maintainers; [ fab ];
61 };
62}