mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
42 lines
855 B
Nix
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 ];
|
|
};
|
|
})
|