nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 buildPythonPackage,
5 cryptography,
6 fetchFromGitHub,
7 powershell,
8 pytestCheckHook,
9 setuptools,
10 xmldiff,
11}:
12
13buildPythonPackage rec {
14 pname = "psrpcore";
15 version = "0.3.1";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "jborean93";
20 repo = "psrpcore";
21 tag = "v${version}";
22 hash = "sha256-svfqTOKKFKMphIPnvXfAbPZrp1GTV2D+33I0Rajfv1Y=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [ cryptography ];
28
29 nativeCheckInputs = [
30 powershell
31 pytestCheckHook
32 xmldiff
33 ];
34
35 pythonImportsCheck = [ "psrpcore" ];
36
37 meta = {
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 = lib.licenses.mit;
42 maintainers = with lib.maintainers; [ fab ];
43 broken = stdenv.hostPlatform.isDarwin;
44 };
45}