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