python3Packages.levenshtein: init at 0.16.0

This commit is contained in:
Fabian Affolter 2021-11-21 19:01:05 +01:00
parent 2ba04c2b4e
commit 26bc8f7eb3
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, rapidfuzz
}:
buildPythonPackage rec {
pname = "levenshtein";
version = "0.16.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "maxbachmann";
repo = "Levenshtein";
rev = "v${version}";
sha256 = "agshUVkkqogj4FbonFd/rrGisMOomS62NND66YKZvjg=";
};
propagatedBuildInputs = [
rapidfuzz
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"Levenshtein"
];
meta = with lib; {
description = "Functions for fast computation of Levenshtein distance and string similarity";
homepage = "https://github.com/maxbachmann/Levenshtein";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -4276,6 +4276,8 @@ in {
leveldb = callPackage ../development/python-modules/leveldb { };
levenshtein = callPackage ../development/python-modules/levenshtein { };
lexid = callPackage ../development/python-modules/lexid { };
lhapdf = toPythonModule (pkgs.lhapdf.override {