1{ 2 lib, 3 buildPythonPackage, 4 cryptography, 5 fetchFromGitHub, 6 powershell, 7 pytestCheckHook, 8 pythonOlder, 9 setuptools, 10 xmldiff, 11}: 12 13buildPythonPackage rec { 14 pname = "psrpcore"; 15 version = "0.3.0"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchFromGitHub { 21 owner = "jborean93"; 22 repo = "psrpcore"; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-YThumRHMOTyhP6/EmNEew47v/X4Y1aYg1nvgZJz2XUg="; 25 }; 26 27 build-system = [ setuptools ]; 28 29 dependencies = [ cryptography ]; 30 31 nativeCheckInputs = [ 32 powershell 33 pytestCheckHook 34 xmldiff 35 ]; 36 37 pythonImportsCheck = [ "psrpcore" ]; 38 39 meta = with lib; { 40 description = "Library for the PowerShell Remoting Protocol (PSRP)"; 41 homepage = "https://github.com/jborean93/psrpcore"; 42 changelog = "https://github.com/jborean93/psrpcore/blob/v${version}/CHANGELOG.md"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ fab ]; 45 }; 46}