depot/third_party/nixpkgs/pkgs/development/python-modules/proxmoxer/default.nix
Default email 8349aecef1 Project import generated by Copybara.
GitOrigin-RevId: 9bf75dd50b7b6d3ce6aaf6563db95f41438b9bdb
2021-10-09 16:59:57 +02:00

45 lines
884 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, mock
, nose
, paramiko
, pytestCheckHook
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "proxmoxer";
version = "1.2.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
sha256 = "sha256-ElHocXrazwK+b5vdjYSJAYB4ajs2n+V8koj4QKkdDMQ=";
};
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 ];
};
}