Merge staging-next into staging

This commit is contained in:
github-actions[bot] 2024-03-18 18:01:28 +00:00 committed by GitHub
commit 871a7b4f28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 17 additions and 8 deletions

View File

@ -42,6 +42,10 @@ buildPythonPackage rec {
pytestCheckHook
];
pytestFlagsArray = [
"-W" "ignore::pytest.PytestRemovedIn8Warning"
];
disabledTestPaths = [
# Tests require networking
"examples"

View File

@ -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 = [

View File

@ -14,6 +14,11 @@ buildPythonPackage rec {
sha256 = "0vm1r1jlaiagj0l9yf7j6zn9w3733dr2169911c0svgrr3gwiwn9";
};
postPatch = ''
substituteInPlace pasta/augment/inline_test.py \
--replace-fail assertRaisesRegexp assertRaisesRegex
'';
propagatedBuildInputs = [
six
];