diff --git a/pkgs/development/python-modules/proxmoxer/default.nix b/pkgs/development/python-modules/proxmoxer/default.nix new file mode 100644 index 000000000000..cdbec22bc1fe --- /dev/null +++ b/pkgs/development/python-modules/proxmoxer/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 0a7a278abe0f..9416978efe78 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -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 ]; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 28c5b986201e..4baa8bb70e74 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };