From b29a031ca6ce51970d6114d2f8211441f2cd1af3 Mon Sep 17 00:00:00 2001 From: freezeboy Date: Sat, 31 Oct 2020 22:51:43 +0100 Subject: [PATCH] check-esxi-hardware: 20181001 -> 20200710 --- pkgs/servers/monitoring/plugins/esxi.nix | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/pkgs/servers/monitoring/plugins/esxi.nix b/pkgs/servers/monitoring/plugins/esxi.nix index 897d6395f95a7..2dc355ecac3d4 100644 --- a/pkgs/servers/monitoring/plugins/esxi.nix +++ b/pkgs/servers/monitoring/plugins/esxi.nix @@ -1,18 +1,17 @@ -{ stdenv, fetchFromGitHub, python2Packages }: +{ stdenv, fetchFromGitHub, python3Packages }: let bName = "check_esxi_hardware"; - pName = stdenv.lib.replaceStrings [ "_" ] [ "-" ] bName; -in python2Packages.buildPythonApplication rec { - name = "${pName}-${version}"; - version = "20181001"; +in python3Packages.buildPythonApplication rec { + pname = stdenv.lib.replaceStrings [ "_" ] [ "-" ] bName; + version = "20200710"; src = fetchFromGitHub { owner = "Napsty"; repo = bName; rev = version; - sha256 = "0azfacxcnnxxfqzrhh29k8cnjyr88gz35bi6h8fq931fl3plv10l"; + sha256 = "EC6np/01S+5SA2H9z5psJ9Pq/YoEyGdHL9wHUKKsNas="; }; dontBuild = true; @@ -21,13 +20,13 @@ in python2Packages.buildPythonApplication rec { installPhase = '' runHook preInstall - install -Dm755 -t $out/bin ${bName}.py - install -Dm644 -t $out/share/doc/${pName} README.md + install -Dm755 ${bName}.py $out/bin/${bName} + install -Dm644 -t $out/share/doc/${pname} README.md runHook postInstall ''; - propagatedBuildInputs = with python2Packages; [ pywbem ]; + propagatedBuildInputs = with python3Packages; [ pywbem requests setuptools ]; meta = with stdenv.lib; { homepage = "https://www.claudiokuenzler.com/nagios-plugins/";