depot/third_party/nixpkgs/pkgs/development/python-modules/pyvmomi/default.nix
Default email a3d4720129 Project import generated by Copybara.
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
2022-12-28 22:21:41 +01:00

43 lines
884 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, six
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyvmomi";
version = "8.0.0.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "vmware";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-DVqC5giVMixj9NlGJ2gaH7ybX3hdQsdNTjuTkesao9E=";
};
propagatedBuildInputs = [
requests
six
];
# 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; [ ];
};
}