depot/third_party/nixpkgs/pkgs/development/python-modules/ms-active-directory/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

52 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
dnspython,
fetchFromGitHub,
ldap3,
pyasn1,
pycryptodome,
pythonOlder,
pytz,
setuptools,
six,
}:
buildPythonPackage rec {
pname = "ms-active-directory";
version = "1.14.1";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "zorn96";
repo = "ms_active_directory";
rev = "refs/tags/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 = with lib; {
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 = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}