Unverified Commit 7e6ccfc8 authored by ghpzin's avatar ghpzin
Browse files

stm32loader: fix build with python 3.12

parent bfbf2d45
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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 = [