mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
46 lines
885 B
Nix
46 lines
885 B
Nix
|
{ 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 ];
|
||
|
};
|
||
|
}
|