forked from mirrors/nixpkgs
fe13d37c7e
This fixes a potential segfault on 32bit machines when the input string causes some 32 bit size calculations (on size_t) to overflow. See https://github.com/ztane/python-Levenshtein/issues/62 for details.
26 lines
569 B
Nix
26 lines
569 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-Levenshtein";
|
|
version = "0.12.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0489zzjlfgzpc7vggs7s7db13pld2nlnw7iwgdz1f386i0x2fkjm";
|
|
};
|
|
|
|
# No tests included in archive
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Functions for fast computation of Levenshtein distance and string similarity";
|
|
homepage = "https://github.com/ztane/python-Levenshtein";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ aske ];
|
|
};
|
|
|
|
}
|