Unverified Commit b5832c03 authored by Adam C. Stephens's avatar Adam C. Stephens Committed by GitHub
Browse files

zabbix-cli: fix build (#488837)

parents 4b77de5f 179077d7
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  python3Packages,
  testers,
  zabbix-cli,
@@ -19,6 +20,15 @@ python3Packages.buildPythonApplication (finalAttrs: {
    hash = "sha256-Y4IR/le+7X3MYmrVnZMr+Gu59LkCB5UfMJ2s9ovSjLM=";
  };

  patches = [
    # Fix MarkupMode import with Typer >= 0.20.1
    # https://github.com/unioslo/zabbix-cli/pull/333
    (fetchpatch {
      url = "https://github.com/unioslo/zabbix-cli/commit/b68f672f557ccb06fef3fd5a2d724633f1eb3c68.patch";
      hash = "sha256-wc59c28aT8IsI4nvEH+CxfdvPAsN2R1uoLgN8tx+mBE=";
    })
  ];

  build-system = with python3Packages; [
    hatchling
  ];