biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / servers / monitoring / plugins / esxi.nix
blobccd77548c0c06994801c351a02c0de37506adec0
1 { lib, fetchFromGitHub, python3Packages }:
3 let
4   bName = "check_esxi_hardware";
6 in python3Packages.buildPythonApplication rec {
7   pname = lib.replaceStrings [ "_" ] [ "-" ] bName;
8   version = "20200710";
9   format = "other";
11   src = fetchFromGitHub {
12     owner  = "Napsty";
13     repo   = bName;
14     rev    = version;
15     sha256 = "EC6np/01S+5SA2H9z5psJ9Pq/YoEyGdHL9wHUKKsNas=";
16   };
18   dontBuild = true;
19   doCheck = false;
21   installPhase = ''
22     runHook preInstall
24     install -Dm755 ${bName}.py $out/bin/${bName}
25     install -Dm644 -t $out/share/doc/${pname} README.md
27     runHook postInstall
28   '';
30   propagatedBuildInputs = with python3Packages; [ pywbem requests setuptools ];
32   meta = with lib; {
33     homepage = "https://www.claudiokuenzler.com/nagios-plugins/";
34     license = licenses.gpl2;
35     maintainers = with maintainers; [ peterhoeg ];
36   };