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