2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
asyncssh,
|
|
|
|
buildPythonPackage,
|
|
|
|
cryptography,
|
|
|
|
fetchFromGitHub,
|
|
|
|
httpcore,
|
|
|
|
httpx,
|
|
|
|
psrpcore,
|
|
|
|
psutil,
|
|
|
|
pyspnego,
|
|
|
|
pytest-mock,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pyyaml,
|
|
|
|
requests,
|
|
|
|
requests-credssp,
|
|
|
|
xmldiff,
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pypsrp";
|
|
|
|
version = "0.8.1";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jborean93";
|
|
|
|
repo = pname;
|
2023-03-04 12:14:45 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2022-06-16 17:23:12 +00:00
|
|
|
hash = "sha256-Pwfc9e39sYPdcHN1cZtxxGEglEYzPp4yOYLD5/4SSiU=";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cryptography
|
|
|
|
httpcore
|
|
|
|
httpx
|
|
|
|
psrpcore
|
|
|
|
pyspnego
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-06-16 17:23:12 +00:00
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
pyyaml
|
|
|
|
xmldiff
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
2024-06-05 15:53:02 +00:00
|
|
|
credssp = [ requests-credssp ];
|
2024-09-19 14:19:46 +00:00
|
|
|
kerberos = pyspnego.optional-dependencies.kerberos;
|
2024-06-05 15:53:02 +00:00
|
|
|
named_pipe = [ psutil ];
|
|
|
|
ssh = [ asyncssh ];
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pypsrp" ];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
disabledTests = [
|
|
|
|
# TypeError: Backend.load_rsa_private_numbers() missing 1 required...
|
|
|
|
"test_psrp_pshost_ui_mocked_methods"
|
|
|
|
"test_psrp_key_exchange_timeout"
|
|
|
|
"test_psrp_multiple_commands"
|
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "PowerShell Remoting Protocol Client library";
|
|
|
|
homepage = "https://github.com/jborean93/pypsrp";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/jborean93/pypsrp/blob/v${version}/CHANGELOG.md";
|
2022-06-16 17:23:12 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|