Merge pull request #113007 from fabaff/proxmoxer

This commit is contained in:
Sandro 2021-02-14 01:19:19 +01:00 committed by GitHub
commit b5c9a550b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 1 deletions

View file

@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, mock
, nose
, paramiko
, pytestCheckHook
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "proxmoxer";
version = "1.1.1";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
sha256 = "09fz8zbxjaly9zqksvq6cqp66plbsyjsmndy4g25ryys45siz1ny";
};
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 ];
};
}

View file

@ -637,7 +637,7 @@
"prometheus" = ps: with ps; [ aiohttp-cors prometheus_client ];
"prowl" = ps: with ps; [ ];
"proximity" = ps: with ps; [ ];
"proxmoxve" = ps: with ps; [ ]; # missing inputs: proxmoxer
"proxmoxve" = ps: with ps; [ proxmoxer ];
"proxy" = ps: with ps; [ pillow ];
"ps4" = ps: with ps; [ ]; # missing inputs: pyps4-2ndscreen
"pulseaudio_loopback" = ps: with ps; [ pulsectl ];

View file

@ -5119,6 +5119,8 @@ in {
prox-tv = callPackage ../development/python-modules/prox-tv { };
proxmoxer = callPackage ../development/python-modules/proxmoxer { };
psautohint = callPackage ../development/python-modules/psautohint { };
psd-tools = callPackage ../development/python-modules/psd-tools { };