Files
nixpkgs/pkgs/development/python-modules/dsinternals/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

43 lines
848 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pycryptodomex,
pyopenssl,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "dsinternals";
version = "1.2.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "p0dalirius";
repo = "pydsinternals";
rev = version;
hash = "sha256-C1ar9c4F4WI5ICX7PJe8FzVwK8bxZds+kMBpttEp9Ko=";
};
propagatedBuildInputs = [
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 ];
};
}