Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildPythonPackage,
4 dnspython,
5 fetchFromGitHub,
6 ldap3,
7 pyasn1,
8 pycryptodome,
9 pytz,
10 setuptools,
11 six,
12}:
13
14buildPythonPackage rec {
15 pname = "ms-active-directory";
16 version = "1.14.1";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "zorn96";
21 repo = "ms_active_directory";
22 tag = "v${version}";
23 hash = "sha256-ZFIeG95+G9ofk54bYZpqu8uVfzjqsOrwWlIZvQgIWRI=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [
29 dnspython
30 ldap3
31 pyasn1
32 pycryptodome
33 pytz
34 six
35 ];
36
37 # Module has no tests
38 doCheck = false;
39
40 pythonImportsCheck = [ "ms_active_directory" ];
41
42 meta = {
43 description = "Python module for integrating with Microsoft Active Directory domains";
44 homepage = "https://github.com/zorn96/ms_active_directory/";
45 changelog = "https://github.com/zorn96/ms_active_directory/releases/tag/v${version}";
46 license = lib.licenses.mit;
47 maintainers = with lib.maintainers; [ fab ];
48 };
49}