about summary refs log tree commit diff
path: root/pkgs/development/python-modules/gophish/default.nix
blob: 48b4e880e5fcf93d35d06b00b1ef91eba65b556e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
  lib,
  appdirs,
  buildPythonPackage,
  certifi,
  chardet,
  fetchFromGitHub,
  idna,
  packaging,
  pyparsing,
  python-dateutil,
  pythonOlder,
  requests,
  setuptools,
  six,
  urllib3,
}:

buildPythonPackage rec {
  pname = "gophish";
  version = "0.5.1";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "gophish";
    repo = "api-client-python";
    rev = "refs/tags/v${version}";
    hash = "sha256-ITwwU/Xixyi9JSWbYf606HB7S5E4jiI0lEYcOdNg3mo=";
  };

  pythonRelaxDeps = true;

  build-system = [ setuptools ];


  dependencies = [
    appdirs
    certifi
    chardet
    idna
    packaging
    pyparsing
    python-dateutil
    requests
    six
    urllib3
  ];

  pythonImportsCheck = [ "gophish" ];

  # Module has no test
  doCheck = false;

  meta = with lib; {
    description = "Module to interact with Gophish";
    homepage = "https://github.com/gophish/api-client-python";
    changelog = "https://github.com/gophish/api-client-python/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}