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.2.0"; 15 disabled = pythonOlder "3.6"; 16 17 src = fetchFromGitHub { 18 owner = pname; 19 repo = pname; 20 rev = version; 21 sha256 = "sha256-ElHocXrazwK+b5vdjYSJAYB4ajs2n+V8koj4QKkdDMQ="; 22 }; 23 24 propagatedBuildInputs = [ 25 paramiko 26 requests 27 ]; 28 29 checkInputs = [ 30 mock 31 nose 32 pytestCheckHook 33 ]; 34 35 # Tests require openssh_wrapper which is outdated and not available 36 pytestFlagsArray = [ "tests/paramiko_tests.py" ]; 37 pythonImportsCheck = [ "proxmoxer" ]; 38 39 meta = with lib; { 40 description = "Python wrapper for Proxmox API v2"; 41 homepage = "https://github.com/proxmoxer/proxmoxer"; 42 license = with licenses; [ bsd3 ]; 43 maintainers = with maintainers; [ fab ]; 44 }; 45}