2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
unicrypto,
|
|
|
|
asyauth,
|
|
|
|
asysocks,
|
|
|
|
asn1crypto,
|
|
|
|
winacl,
|
|
|
|
prompt-toolkit,
|
|
|
|
tqdm,
|
|
|
|
wcwidth,
|
|
|
|
tabulate,
|
2021-01-15 22:18:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "msldap";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.5.10";
|
|
|
|
pyproject = true;
|
2022-04-03 18:54:34 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-Zb/g5QLJTSb0XTZvVnzbYkYvJ/ZVvQri8CKP48n5ibg=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
propagatedBuildInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
unicrypto
|
2022-09-22 12:36:57 +00:00
|
|
|
asyauth
|
2021-01-15 22:18:51 +00:00
|
|
|
asysocks
|
2024-04-21 15:54:59 +00:00
|
|
|
asn1crypto
|
|
|
|
winacl
|
2021-08-05 21:33:18 +00:00
|
|
|
prompt-toolkit
|
2021-01-15 22:18:51 +00:00
|
|
|
tqdm
|
2024-04-21 15:54:59 +00:00
|
|
|
wcwidth
|
|
|
|
tabulate
|
2021-01-15 22:18:51 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Project doesn't have tests
|
|
|
|
doCheck = false;
|
2022-04-03 18:54:34 +00:00
|
|
|
|
2024-06-05 15:53:02 +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 ];
|
|
|
|
};
|
|
|
|
}
|