mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
python3Packages.levenshtein: init at 0.16.0
This commit is contained in:
parent
2ba04c2b4e
commit
26bc8f7eb3
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 ];
|
||||
};
|
||||
}
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue