Commit f25e1d1f authored by Robert Schütz's avatar Robert Schütz
Browse files

python312Packages.rapidfuzz: support Taskflow 3.8.0

parent 4631e519
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
  buildPythonPackage,
  pythonOlder,
  fetchFromGitHub,
  fetchpatch2,
  cmake,
  cython,
  ninja,
@@ -31,6 +32,15 @@ buildPythonPackage rec {
    hash = "sha256-hLYidU09nCSOi42zgSh7dW83glxIjFY4C6BTmy/sf60=";
  };

  patches = [
    # https://github.com/rapidfuzz/RapidFuzz/pull/414
    (fetchpatch2 {
      name = "support-taskflow-3.8.0.patch";
      url = "https://github.com/rapidfuzz/RapidFuzz/commit/8f0429bbd970ccc036018b87108845c384911ff7.patch";
      hash = "sha256-1wizdCkXYEMe5JWXUHCOCuDdS0z76FKimR47B3s2oVU=";
    })
  ];

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail "Cython >=3.0.11, <3.1.0" "Cython"