depot/third_party/nixpkgs/pkgs/development/python-modules/pyvmomi/default.nix
Default email 4bac34ead1 Project import generated by Copybara.
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
2023-02-09 12:40:11 +01:00

43 lines
886 B
Nix

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