@@ -0,0 +1,49 @@
1+{ lib
2+, buildPythonPackage
3+, dnspython
4+, fetchFromGitHub
5+, ldap3
6+, pyasn1
7+, pycryptodome
8+, pythonOlder
9+, pytz
10+, six
11+}:
12+
13+buildPythonPackage rec {
14+ pname = "ms-active-directory";
15+ version = "1.12.1";
16+ format = "setuptools";
17+
18+ disabled = pythonOlder "3.8";
19+
20+ src = fetchFromGitHub {
21+ owner = "zorn96";
22+ repo = "ms_active_directory";
23+ rev = "v${version}";
24+ sha256 = "sha256-mErQib8xTgo29iPAtiLnhxLXyFboAzyEW9A/QMseM6k=";
25+ };
26+
27+ propagatedBuildInputs = [
28+ dnspython
29+ ldap3
30+ pyasn1
31+ pycryptodome
32+ pytz
33+ six
34+ ];
35+
36+ # Module has no tests
37+ doCheck = false;
38+
39+ pythonImportsCheck = [
40+ "ms_active_directory"
41+ ];
42+
43+ meta = with lib; {
44+ description = "Python module for integrating with Microsoft Active Directory domains";
45+ homepage = "https://github.com/zorn96/ms_active_directory/";
46+ license = with licenses; [ mit ];
47+ maintainers = with maintainers; [ fab ];
48+ };
49+}