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