From d6c6b10750ba3fe76300f8e7bbaafe36ced76064 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Wed, 30 Aug 2023 01:59:00 -0700 Subject: [PATCH] mypaint: fetch patch to fix python 3.11 build --- pkgs/applications/graphics/mypaint/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/graphics/mypaint/default.nix b/pkgs/applications/graphics/mypaint/default.nix index 48cc00d008e9..6381c399315f 100644 --- a/pkgs/applications/graphics/mypaint/default.nix +++ b/pkgs/applications/graphics/mypaint/default.nix @@ -29,7 +29,7 @@ in buildPythonApplication rec { owner = "mypaint"; repo = "mypaint"; rev = "v${version}"; - sha256 = "rVKcxzWZRLcuxK8xRyRgvitXAh4uOEyqHswLeTdA2Mk="; + hash = "sha256-rVKcxzWZRLcuxK8xRyRgvitXAh4uOEyqHswLeTdA2Mk="; fetchSubmodules = true; }; @@ -38,7 +38,13 @@ in buildPythonApplication rec { # https://github.com/mypaint/mypaint/pull/1183 (fetchpatch { url = "https://github.com/mypaint/mypaint/commit/423950bec96d6057eac70442de577364d784a847.patch"; - sha256 = "OxJJOi20bFMRibL59zx6svtMrkgeMYyEvbdSXbZHqpc="; + hash = "sha256-OxJJOi20bFMRibL59zx6svtMrkgeMYyEvbdSXbZHqpc="; + }) + # https://github.com/mypaint/mypaint/pull/1193 + (fetchpatch { + name = "python-3.11-compatibility.patch"; + url = "https://github.com/mypaint/mypaint/commit/032a155b72f2b021f66a994050d83f07342d04af.patch"; + hash = "sha256-EI4WJbpZrCtFMKd6QdXlWpRpIHi37gJffDjclzTLaLc="; }) ];