1{ lib, buildPythonPackage, fetchFromGitHub, requests, six }:
2
3buildPythonPackage rec {
4 pname = "pyvmomi";
5 version = "7.0.1";
6
7 src = fetchFromGitHub {
8 owner = "vmware";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "1i7zni4ygdikc22wfrbnzwqh6qy402s3di6sdlfcvky2y7fzx52x";
12 };
13
14 # requires old version of vcrpy
15 doCheck = false;
16
17 propagatedBuildInputs = [ requests six ];
18
19 meta = with lib; {
20 description = "Python SDK for the VMware vSphere API that allows you to manage ESX, ESXi, and vCenter";
21 homepage = "https://github.com/vmware/pyvmomi";
22 license = licenses.asl20;
23 };
24}