nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pycryptodomex,
6 pyopenssl,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "dsinternals";
12 version = "1.2.4";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "p0dalirius";
17 repo = "pydsinternals";
18 rev = version;
19 hash = "sha256-C1ar9c4F4WI5ICX7PJe8FzVwK8bxZds+kMBpttEp9Ko=";
20 };
21
22 propagatedBuildInputs = [
23 pyopenssl
24 pycryptodomex
25 ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 pythonImportsCheck = [ "dsinternals" ];
30
31 enabledTestPaths = [ "tests/*.py" ];
32
33 meta = {
34 description = "Module to interact with Windows Active Directory";
35 homepage = "https://github.com/p0dalirius/pydsinternals";
36 license = lib.licenses.gpl2Only;
37 maintainers = with lib.maintainers; [ fab ];
38 };
39}