1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 paramiko,
6 pytestCheckHook,
7 pythonOlder,
8 requests,
9 requests-toolbelt,
10 responses,
11}:
12
13buildPythonPackage rec {
14 pname = "proxmoxer";
15 version = "2.0.1";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchFromGitHub {
21 owner = pname;
22 repo = pname;
23 rev = "refs/tags/${version}";
24 hash = "sha256-kwD6yJhVTaVAAUVA6k4r6HZy4w+MPDF7DfJBS8wGE/c=";
25 };
26
27 propagatedBuildInputs = [
28 paramiko
29 requests
30 ];
31
32 nativeCheckInputs = [
33 pytestCheckHook
34 requests-toolbelt
35 responses
36 ];
37
38 disabledTestPaths = [
39 # Tests require openssh_wrapper which is outdated and not available
40 "tests/test_openssh.py"
41 ];
42
43 pythonImportsCheck = [ "proxmoxer" ];
44
45 meta = with lib; {
46 description = "Python wrapper for Proxmox API v2";
47 homepage = "https://github.com/proxmoxer/proxmoxer";
48 changelog = "https://github.com/proxmoxer/proxmoxer/releases/tag/${version}";
49 license = with licenses; [ bsd3 ];
50 maintainers = with maintainers; [ fab ];
51 };
52}