Unverified Commit 25439d84 authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python3Packages.rapidfuzz: 3.14.3 -> 3.14.5 (#514055)

parents 595fd786 0c28304e
Loading
Loading
Loading
Loading
+3 −19
Original line number Diff line number Diff line
@@ -3,7 +3,6 @@
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch,
  clang-tools,
  cmake,
  cython,
@@ -19,34 +18,19 @@

buildPythonPackage rec {
  pname = "rapidfuzz";
  version = "3.14.3";
  version = "3.14.5";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "maxbachmann";
    repo = "RapidFuzz";
    tag = "v${version}";
    hash = "sha256-DOXeZaD21Qsum4brBlMSFcBAUbNEOgCXc6AqEboP1e4=";
    hash = "sha256-wF7eeSD6GQfN0EOwDvrgjMqN5u2wxXFlktQS7nIKgkU=";
  };

  patches = [
    # https://github.com/rapidfuzz/RapidFuzz/pull/463
    (fetchpatch {
      name = "support-taskflow-3.11.0.patch";
      url = "https://github.com/rapidfuzz/RapidFuzz/commit/0ef2a4980c41b852283e6db7a747a1632307c75e.patch";
      hash = "sha256-xb+J3PXwD51lZqIJcTzPJWrT/oqrIXxh1cLp91DhIPg=";
    })
    # https://github.com/rapidfuzz/RapidFuzz/pull/470
    (fetchpatch {
      name = "support-taskflow-4.0.0.patch";
      url = "https://github.com/rapidfuzz/RapidFuzz/commit/4b794e6168d98fff4c518a64c4d809238b17d8fe.patch";
      hash = "sha256-F4gwV4ewcHfR7ptcEVAvbiNFIvXqFCIM/Qk8giv4jAc=";
    })
  ];

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail "Cython >=3.1.6, <3.2.0" "Cython >=3.1.6"
      --replace-fail "Cython >=3.1.6, <3.3.0" "Cython >=3.1.6"
  '';

  build-system = [