depot/third_party/nixpkgs/pkgs/development/python-modules/pyvmomi/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

53 lines
1,004 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
lxml,
requests,
six,
pyopenssl,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pyvmomi";
version = "8.0.2.0.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "vmware";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-Y7Zor70P4lhkAslckg/prfCmnszVMFPntWdJpfWnvIM=";
};
propagatedBuildInputs = [
requests
six
];
passthru.optional-dependencies = {
sso = [
lxml
pyopenssl
];
};
# Requires old version of vcrpy
doCheck = false;
pythonImportsCheck = [
"pyVim"
"pyVmomi"
];
meta = with lib; {
description = "Python SDK for the VMware vSphere API that allows you to manage ESX, ESXi, and vCenter";
homepage = "https://github.com/vmware/pyvmomi";
changelog = "https://github.com/vmware/pyvmomi/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}