check-esxi-hardware: 20181001 -> 20200710

This commit is contained in:
freezeboy 2020-10-31 22:51:43 +01:00 committed by Jonathan Ringer
parent b8ba234c8c
commit b29a031ca6
1 changed files with 8 additions and 9 deletions

View File

@ -1,18 +1,17 @@
{ stdenv, fetchFromGitHub, python2Packages }: { stdenv, fetchFromGitHub, python3Packages }:
let let
bName = "check_esxi_hardware"; bName = "check_esxi_hardware";
pName = stdenv.lib.replaceStrings [ "_" ] [ "-" ] bName;
in python2Packages.buildPythonApplication rec { in python3Packages.buildPythonApplication rec {
name = "${pName}-${version}"; pname = stdenv.lib.replaceStrings [ "_" ] [ "-" ] bName;
version = "20181001"; version = "20200710";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Napsty"; owner = "Napsty";
repo = bName; repo = bName;
rev = version; rev = version;
sha256 = "0azfacxcnnxxfqzrhh29k8cnjyr88gz35bi6h8fq931fl3plv10l"; sha256 = "EC6np/01S+5SA2H9z5psJ9Pq/YoEyGdHL9wHUKKsNas=";
}; };
dontBuild = true; dontBuild = true;
@ -21,13 +20,13 @@ in python2Packages.buildPythonApplication rec {
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
install -Dm755 -t $out/bin ${bName}.py install -Dm755 ${bName}.py $out/bin/${bName}
install -Dm644 -t $out/share/doc/${pName} README.md install -Dm644 -t $out/share/doc/${pname} README.md
runHook postInstall runHook postInstall
''; '';
propagatedBuildInputs = with python2Packages; [ pywbem ]; propagatedBuildInputs = with python3Packages; [ pywbem requests setuptools ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = "https://www.claudiokuenzler.com/nagios-plugins/"; homepage = "https://www.claudiokuenzler.com/nagios-plugins/";