diff options
-rw-r--r-- | pkgs/development/python-modules/pyvmomi/default.nix | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/pyvmomi/default.nix b/pkgs/development/python-modules/pyvmomi/default.nix index 1fa12660d4396..4f07951be5db0 100644 --- a/pkgs/development/python-modules/pyvmomi/default.nix +++ b/pkgs/development/python-modules/pyvmomi/default.nix @@ -1,24 +1,43 @@ -{ lib, buildPythonPackage, fetchFromGitHub, requests, six }: +{ lib +, buildPythonPackage +, fetchFromGitHub +, requests +, six +, pythonOlder +}: buildPythonPackage rec { pname = "pyvmomi"; version = "8.0.0.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "vmware"; repo = pname; rev = "refs/tags/v${version}"; - sha256 = "sha256-DVqC5giVMixj9NlGJ2gaH7ybX3hdQsdNTjuTkesao9E="; + hash = "sha256-DVqC5giVMixj9NlGJ2gaH7ybX3hdQsdNTjuTkesao9E="; }; - # requires old version of vcrpy + propagatedBuildInputs = [ + requests + six + ]; + + # Requires old version of vcrpy doCheck = false; - propagatedBuildInputs = [ requests six ]; + 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; [ ]; }; } |