1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 lxml,
6 requests,
7 six,
8 pyopenssl,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "pyvmomi";
14 version = "9.0.0.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "vmware";
19 repo = "pyvmomi";
20 tag = "v${version}";
21 hash = "sha256-4r0UtLR1dhhNQ+Lx12JiEozDAjMxPly+RR0LWRg/A4E=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [
27 requests
28 six
29 ];
30
31 optional-dependencies = {
32 sso = [
33 lxml
34 pyopenssl
35 ];
36 };
37
38 # Requires old version of vcrpy
39 doCheck = false;
40
41 pythonImportsCheck = [
42 "pyVim"
43 "pyVmomi"
44 ];
45
46 meta = with lib; {
47 description = "Python SDK for the VMware vSphere API that allows you to manage ESX, ESXi, and vCenter";
48 homepage = "https://github.com/vmware/pyvmomi";
49 changelog = "https://github.com/vmware/pyvmomi/releases/tag/${src.tag}";
50 license = licenses.asl20;
51 maintainers = [ ];
52 };
53}