Merge pull request #250706 from tjni/jarowinkler

python3.pkgs.jarowinkler: fix build dependencies
This commit is contained in:
OTABI Tomoya
2023-08-23 15:03:33 +09:00
committed by GitHub
2 changed files with 14 additions and 3 deletions
@@ -8,6 +8,7 @@
, rapidfuzz-capi
, scikit-build
, setuptools
, wheel
, jarowinkler-cpp
, hypothesis
, pytestCheckHook
@@ -16,11 +17,10 @@
buildPythonPackage rec {
pname = "jarowinkler";
version = "1.2.3";
format = "pyproject";
disabled = pythonOlder "3.6";
format = "pyproject";
src = fetchFromGitHub {
owner = "maxbachmann";
repo = "JaroWinkler";
@@ -28,6 +28,14 @@ buildPythonPackage rec {
hash = "sha256-j+ZabVsiVitNkTPhGjDg72XogjvPaL453lTW45ITm90=";
};
# We cannot use Cython version 3.0.0 because the code in jarowinkler has not
# been adapted for https://github.com/cython/cython/issues/4280 yet
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'scikit-build==' 'scikit-build>=' \
--replace 'Cython==3.0.0a11' 'Cython'
'';
nativeBuildInputs = [
cmake
cython
@@ -35,6 +43,7 @@ buildPythonPackage rec {
rapidfuzz-capi
scikit-build
setuptools
wheel
];
buildInputs = [
+3 -1
View File
@@ -5346,7 +5346,9 @@ self: super: with self; {
jaraco-text = callPackage ../development/python-modules/jaraco-text { };
jarowinkler = callPackage ../development/python-modules/jarowinkler { };
jarowinkler = callPackage ../development/python-modules/jarowinkler {
inherit (pkgs) cmake ninja;
};
javaobj-py3 = callPackage ../development/python-modules/javaobj-py3 { };