Merge pull request #146911 from fabaff/bump-python-levenshtein

python3Packages.levenshtein: init at 0.16.0
This commit is contained in:
Fabian Affolter 2021-11-22 09:40:57 +01:00 committed by GitHub
commit c0606287dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 51 additions and 4 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

@ -4,8 +4,9 @@
}:
buildPythonPackage rec {
pname = "python-Levenshtein";
pname = "python-levenshtein";
version = "0.12.2";
format = "setuptools";
src = fetchPypi {
inherit pname version;
@ -15,11 +16,14 @@ buildPythonPackage rec {
# No tests included in archive
doCheck = false;
pythonImportsCheck = [
"Levenshtein"
];
meta = with lib; {
description = "Functions for fast computation of Levenshtein distance and string similarity";
homepage = "https://github.com/ztane/python-Levenshtein";
license = licenses.gpl2;
homepage = "https://github.com/ztane/python-Levenshtein";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ aske ];
};
}

View File

@ -4284,6 +4284,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 {