python311Packages.editdistance: fix build

This commit is contained in:
Martin Weinelt
2024-03-18 16:26:04 +01:00
parent 7e84383e37
commit 94ec361a26
@@ -2,14 +2,16 @@
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, cython
, cython_3
, pdm-backend
, setuptools
, pythonOlder
}:
buildPythonPackage rec {
pname = "editdistance";
version = "0.8.1";
format = "setuptools";
pyproject =true;
disabled = pythonOlder "3.7";
@@ -21,15 +23,13 @@ buildPythonPackage rec {
};
nativeBuildInputs = [
cython
cython_3
pdm-backend
setuptools
];
preBuild = ''
cythonize --inplace editdistance/bycython.pyx
'';
nativeCheckInputs = [
pytestCheckHook
pytestCheckHook
];
pythonImportsCheck = [