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