mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 14:41:17 +00:00
Merge pull request #113007 from fabaff/proxmoxer
This commit is contained in:
commit
b5c9a550b9
45
pkgs/development/python-modules/proxmoxer/default.nix
Normal file
45
pkgs/development/python-modules/proxmoxer/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 ];
|
||||
|
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue