Unverified Commit 0c084c20 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

mqtt-exporter: 1.9.0 -> 1.11.2 (#493890)

parents ff636d93 18d0d6de
Loading
Loading
Loading
Loading
+2 −11
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  fetchpatch,
  python3,
}:

python3.pkgs.buildPythonApplication (finalAttrs: {
  pname = "mqtt-exporter";
  version = "1.9.0";
  version = "1.11.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "kpetremann";
    repo = "mqtt-exporter";
    tag = "v${finalAttrs.version}";
    hash = "sha256-z2y43sRlwgy3Bwhu8rvlTkf6HOT+v8kjo5FT3lo5CEA=";
    hash = "sha256-pWXdd82K1BhUKHGVGpTRW4f/Xa9nf0Ww/l2pxdw/Jw8=";
  };

  patches = [
    (fetchpatch {
      name = "Fix `mqtt-exporter` script";
      url = "https://github.com/kpetremann/mqtt-exporter/commit/53f5f31b28cb5aeec1c8d0bb7d1aea56f036082e.diff";
      hash = "sha256-LS+kO6bHofNQxk9o+ExsJnaecwfY/40S0MIJwpJxCAI=";
    })
  ];

  build-system = with python3.pkgs; [ setuptools ];

  dependencies = with python3.pkgs; [