nixpkgs/pkgs/development/python-modules/dsinternals/default.nix
2026-02-02 10:00:45 +01:00

42 lines
855 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pycryptodomex,
pyopenssl,
pytestCheckHook,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "dsinternals";
version = "1.2.5";
pyproject = true;
src = fetchFromGitHub {
owner = "p0dalirius";
repo = "pydsinternals";
tag = finalAttrs.version;
hash = "sha256-ZbYHO7It7R/Zh2dykTa4Ha4m2eyt9zkCzPyc/j79v6A=";
};
build-system = [ setuptools ];
dependencies = [
pyopenssl
pycryptodomex
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "dsinternals" ];
enabledTestPaths = [ "tests/*.py" ];
meta = {
description = "Module to interact with Windows Active Directory";
homepage = "https://github.com/p0dalirius/pydsinternals";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ fab ];
};
})