mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-21 12:23:55 +00:00
42 lines
801 B
Nix
42 lines
801 B
Nix
|
{ 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 ];
|
||
|
};
|
||
|
}
|