1{ lib, buildPythonPackage, fetchFromGitHub, requests }:
2
3buildPythonPackage rec {
4 pname = "pyvmomi";
5 version = "6.7.1.2018.12";
6
7 src = fetchFromGitHub {
8 owner = "vmware";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "1pgl95rbghidbyr8hndjzfzgb1yjchfcknlqgg3qbqvljnz9hfja";
12 };
13
14 # requires old version of vcrpy
15 doCheck = false;
16
17 propagatedBuildInputs = [ requests ];
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}