Unverified Commit 3d9dab80 authored by Martin Weinelt's avatar Martin Weinelt
Browse files

python312Packages.bellows: fix build

parent de8da1b5
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
, click
, click-log
, fetchFromGitHub
, fetchpatch2
, pure-pcapy3
, pyserial-asyncio
, pytest-asyncio
@@ -29,6 +30,13 @@ buildPythonPackage rec {
    hash = "sha256-oxPzjDb+FdHeHsgeGKH3SVvKb0vCB9dIhT7lGzhDcBw=";
  };

  patches = [
    (fetchpatch2 {
      url = "https://github.com/zigpy/bellows/commit/7833647083f27f55b7ad345f4aaa7dffaa369abc.patch";
      hash = "sha256-v+BOPqikWoyNtZ1qRWe3RwraG6nQnfZqoV6yj9PpGX8=";
    })
  ];

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail '"setuptools-git-versioning<2"' "" \