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

View File

@ -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/";