summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/ms-active-directory/default.nix
blob: de62ca002ef300d7998475175ba9396337bb36dd (plain)
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
{
  lib,
  buildPythonPackage,
  dnspython,
  fetchFromGitHub,
  ldap3,
  pyasn1,
  pycryptodome,
  pytz,
  setuptools,
  six,
}:

buildPythonPackage rec {
  pname = "ms-active-directory";
  version = "1.14.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "zorn96";
    repo = "ms_active_directory";
    tag = "v${version}";
    hash = "sha256-ZFIeG95+G9ofk54bYZpqu8uVfzjqsOrwWlIZvQgIWRI=";
  };

  build-system = [ setuptools ];

  dependencies = [
    dnspython
    ldap3
    pyasn1
    pycryptodome
    pytz
    six
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [ "ms_active_directory" ];

  meta = {
    description = "Python module for integrating with Microsoft Active Directory domains";
    homepage = "https://github.com/zorn96/ms_active_directory/";
    changelog = "https://github.com/zorn96/ms_active_directory/releases/tag/v${version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}