Merge pull request #146911 from fabaff/bump-python-levenshtein
python3Packages.levenshtein: init at 0.16.0
This commit is contained in:
commit
c0606287dd
41
pkgs/development/python-modules/levenshtein/default.nix
Normal file
41
pkgs/development/python-modules/levenshtein/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 ];
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user