Merge pull request #198714 from fabaff/editdistance-bump

python310Packages.editdistance: 0.6.0 -> 0.6.1
This commit is contained in:
Fabian Affolter 2022-10-30 23:38:52 +01:00 committed by GitHub
commit f927ea49df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,29 +3,38 @@
, fetchFromGitHub
, pytestCheckHook
, cython
, pythonOlder
}:
buildPythonPackage rec {
pname = "editdistance";
version = "0.6.0";
version = "0.6.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "roy-ht";
repo = pname;
rev = "v${version}";
sha256 = "17xkndwdyf14nfxk25z1qnhkzm0yxw65fpj78c01haq241zfzjr5";
hash = "sha256-c0TdH1nJAKrepatCSCTLaKsDv9NKruMQadCjclKGxBw=";
};
nativeBuildInputs = [ cython ];
nativeBuildInputs = [
cython
];
preBuild = ''
cythonize --inplace editdistance/bycython.pyx
'';
checkInputs = [ pytestCheckHook ];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "editdistance" ];
pythonImportsCheck = [
"editdistance"
];
meta = with lib; {
description = "Python implementation of the edit distance (Levenshtein distance)";