Unverified Commit 7c86daf6 authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

Merge pull request #250706 from tjni/jarowinkler

python3.pkgs.jarowinkler: fix build dependencies
parents c0b15de6 397c07e1
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -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
Original line number Diff line number Diff line
@@ -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 { };