From 7e6ccfc8caf4e8cfaf015a6985927e6b5a4ddf35 Mon Sep 17 00:00:00 2001 From: ghpzin Date: Sat, 10 Aug 2024 15:34:08 +0300 Subject: [PATCH] stm32loader: fix build with python 3.12 --- .../development/python-modules/stm32loader/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/stm32loader/default.nix b/pkgs/development/python-modules/stm32loader/default.nix index 0744764df1ae7..4fab0c1b30774 100644 --- a/pkgs/development/python-modules/stm32loader/default.nix +++ b/pkgs/development/python-modules/stm32loader/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchPypi, + fetchpatch2, # build-system flit-core, @@ -27,6 +28,15 @@ buildPythonPackage rec { hash = "sha256-QTLSEjdJtDH4GCamnKHN5pEjW41rRtAMXxyZZMM5K3w="; }; + patches = [ + # fix build with python 3.12 + # https://github.com/florisla/stm32loader/pull/79 + (fetchpatch2 { + url = "https://github.com/florisla/stm32loader/commit/96f59b2984b0d0371b2da0360d6e8d94d0b39a68.patch?full_index=1"; + hash = "sha256-JUEjQWOnzeMA1OELS214OR7+MYUkCKN5lxwsmRoFbfo="; + }) + ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [