2021-01-15 22:18:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, asn1crypto
|
2022-09-22 12:36:57 +00:00
|
|
|
, asyauth
|
2021-01-15 22:18:51 +00:00
|
|
|
, asysocks
|
|
|
|
, minikerberos
|
2021-08-05 21:33:18 +00:00
|
|
|
, prompt-toolkit
|
2021-01-15 22:18:51 +00:00
|
|
|
, tqdm
|
|
|
|
, winacl
|
|
|
|
, winsspi
|
2022-04-03 18:54:34 +00:00
|
|
|
, pythonOlder
|
2021-01-15 22:18:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "msldap";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.5.9";
|
2022-04-03 18:54:34 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-XzxONiKW4OHrpEftqfIwmIp7KgiCb3s+007JYS68/jM=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
asn1crypto
|
2022-09-22 12:36:57 +00:00
|
|
|
asyauth
|
2021-01-15 22:18:51 +00:00
|
|
|
asysocks
|
|
|
|
minikerberos
|
2021-08-05 21:33:18 +00:00
|
|
|
prompt-toolkit
|
2021-01-15 22:18:51 +00:00
|
|
|
tqdm
|
|
|
|
winacl
|
|
|
|
winsspi
|
|
|
|
];
|
|
|
|
|
|
|
|
# Project doesn't have tests
|
|
|
|
doCheck = false;
|
2022-04-03 18:54:34 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"msldap"
|
|
|
|
];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python LDAP library for auditing MS AD";
|
|
|
|
homepage = "https://github.com/skelsec/msldap";
|
2022-11-21 17:40:18 +00:00
|
|
|
changelog = "https://github.com/skelsec/msldap/releases/tag/${version}";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|