From 936a857a07fa6131d488851f674004e7d0b2c1f5 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 21 Jun 2021 17:24:24 +0200 Subject: [PATCH] whipper: add patch for ruamel_yaml 0.17 compat --- pkgs/applications/audio/whipper/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/applications/audio/whipper/default.nix b/pkgs/applications/audio/whipper/default.nix index e96a6bfef208..d66c161664f3 100644 --- a/pkgs/applications/audio/whipper/default.nix +++ b/pkgs/applications/audio/whipper/default.nix @@ -1,6 +1,7 @@ { lib , python3 , fetchFromGitHub +, fetchpatch , libcdio-paranoia , cdrdao , libsndfile @@ -22,6 +23,15 @@ in python3.pkgs.buildPythonApplication rec { sha256 = "00cq03cy5dyghmibsdsq5sdqv3bzkzhshsng74bpnb5lasxp3ia5"; }; + patches = [ + (fetchpatch { + # Use custom YAML subclass to be compatible with ruamel_yaml>=0.17 + # https://github.com/whipper-team/whipper/pull/543 + url = "https://github.com/whipper-team/whipper/commit/3ce5964dfe8be1e625c3e3b091360dd0bc34a384.patch"; + sha256 = "0n9dmib884y8syvypsg88j0h71iy42n1qsrh0am8pwna63sl15ah"; + }) + ]; + nativeBuildInputs = with python3.pkgs; [ setuptools-scm docutils