Commit c0954a8d authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files
parent deb4f62a
Loading
Loading
Loading
Loading
+10 −13
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  cmake,
  cython,
  fetchFromGitHub,
  ninja,
  pytestCheckHook,
  pythonOlder,
  rapidfuzz,
  rapidfuzz-cpp,
  scikit-build-core,
  rapidfuzz-cpp,
  rapidfuzz,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "levenshtein";
  version = "0.26.0";
  version = "0.27.0";
  pyproject = true;

  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "maxbachmann";
    repo = "Levenshtein";
    tag = "v${version}";
    hash = "sha256-uLOOAmJ8Y0z+tuIIOSnI8qZoZ+IA2+tNBX1lDCvc8+A=";
    hash = "sha256-kiYu46qv8sBBcPoCo3PN1q9F0EJ1s5hAMKavPaztM4s=";
    fetchSubmodules = true; # # for vendored `rapidfuzz-cpp`
  };

@@ -44,11 +41,11 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "Levenshtein" ];

  meta = with lib; {
  meta = {
    description = "Functions for fast computation of Levenshtein distance and string similarity";
    homepage = "https://github.com/maxbachmann/Levenshtein";
    changelog = "https://github.com/maxbachmann/Levenshtein/blob/${src.rev}/HISTORY.md";
    license = licenses.gpl2Plus;
    maintainers = with maintainers; [ fab ];
    changelog = "https://github.com/maxbachmann/Levenshtein/blob/v${version}/HISTORY.md";
    license = lib.licenses.gpl2Plus;
    maintainers = with lib.maintainers; [ fab ];
  };
}