python313Packages.rapidfuzz: 3.12.2 -> 3.13.0 (#396729)
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
lib,
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
pythonOlder,
|
||||
fetchFromGitHub,
|
||||
cmake,
|
||||
cython,
|
||||
@@ -18,16 +17,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "rapidfuzz";
|
||||
version = "3.12.2";
|
||||
version = "3.13.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "maxbachmann";
|
||||
repo = "RapidFuzz";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-keV+IBBHkdDpKuT1o6xNA5UAHlG1I9vkt13W8dafiDw=";
|
||||
hash = "sha256-vwAqlTq4HIbmCL1HsHcgfVWETImxdqTsnenmX2RGXw8=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
@@ -44,13 +41,11 @@ buildPythonPackage rec {
|
||||
taskflow
|
||||
];
|
||||
|
||||
preBuild =
|
||||
''
|
||||
export RAPIDFUZZ_BUILD_EXTENSION=1
|
||||
''
|
||||
+ lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) ''
|
||||
export CMAKE_ARGS="-DCMAKE_CXX_COMPILER_AR=$AR -DCMAKE_CXX_COMPILER_RANLIB=$RANLIB"
|
||||
'';
|
||||
env.RAPIDFUZZ_BUILD_EXTENSION = 1;
|
||||
|
||||
preBuild = lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) ''
|
||||
export CMAKE_ARGS="-DCMAKE_CXX_COMPILER_AR=$AR -DCMAKE_CXX_COMPILER_RANLIB=$RANLIB"
|
||||
'';
|
||||
|
||||
optional-dependencies = {
|
||||
all = [ numpy ];
|
||||
@@ -78,11 +73,11 @@ buildPythonPackage rec {
|
||||
"rapidfuzz.utils"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Rapid fuzzy string matching";
|
||||
homepage = "https://github.com/maxbachmann/RapidFuzz";
|
||||
changelog = "https://github.com/maxbachmann/RapidFuzz/blob/${src.tag}/CHANGELOG.rst";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user