about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/proxmoxer/default.nix
blob: 33b233bd6096910ec23ee38065f9d84989dad2b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ lib
, buildPythonPackage
, fetchFromGitHub
, mock
, nose
, paramiko
, pytestCheckHook
, pythonOlder
, requests
}:

buildPythonPackage rec {
  pname = "proxmoxer";
  version = "1.3.0";
  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = pname;
    repo = pname;
    rev = version;
    sha256 = "sha256-3EpId20WVVjXA/wxwy1peyHPcXdiT3fprABkcNBpZtE=";
  };

  propagatedBuildInputs = [
    paramiko
    requests
  ];

  checkInputs = [
    mock
    nose
    pytestCheckHook
  ];

  # Tests require openssh_wrapper which is outdated and not available
  pytestFlagsArray = [ "tests/paramiko_tests.py" ];
  pythonImportsCheck = [ "proxmoxer" ];

  meta = with lib; {
    description = "Python wrapper for Proxmox API v2";
    homepage = "https://github.com/proxmoxer/proxmoxer";
    license = with licenses; [ bsd3 ];
    maintainers = with maintainers; [ fab ];
  };
}