Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pyvmomi / default.nix
blobf395f88bf7dc5aa92fd314a9dc95b574793c3ee3
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , lxml
5 , requests
6 , six
7 , pyopenssl
8 , pythonOlder
9 }:
11 buildPythonPackage rec {
12   pname = "pyvmomi";
13   version = "8.0.2.0.1";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "vmware";
20     repo = pname;
21     rev = "refs/tags/v${version}";
22     hash = "sha256-Y7Zor70P4lhkAslckg/prfCmnszVMFPntWdJpfWnvIM=";
23   };
25   propagatedBuildInputs = [
26     requests
27     six
28   ];
30   passthru.optional-dependencies = {
31     sso = [
32       lxml
33       pyopenssl
34     ];
35   };
37   # Requires old version of vcrpy
38   doCheck = false;
40   pythonImportsCheck = [
41     "pyVim"
42     "pyVmomi"
43   ];
45   meta = with lib; {
46     description = "Python SDK for the VMware vSphere API that allows you to manage ESX, ESXi, and vCenter";
47     homepage = "https://github.com/vmware/pyvmomi";
48     changelog = "https://github.com/vmware/pyvmomi/releases/tag/v${version}";
49     license = licenses.asl20;
50     maintainers = with maintainers; [ ];
51   };