depot/third_party/nixpkgs/pkgs/development/python-modules/levenshtein/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

41 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 ];
};
}