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 pytestCheckHook
]; ];
pytestFlagsArray = [
"-W" "ignore::pytest.PytestRemovedIn8Warning"
];
disabledTestPaths = [ disabledTestPaths = [
# Tests require networking # Tests require networking
"examples" "examples"

View File

@ -2,14 +2,16 @@
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, pytestCheckHook , pytestCheckHook
, cython , cython_3
, pdm-backend
, setuptools
, pythonOlder , pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "editdistance"; pname = "editdistance";
version = "0.8.1"; version = "0.8.1";
format = "setuptools"; pyproject =true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -21,15 +23,13 @@ buildPythonPackage rec {
}; };
nativeBuildInputs = [ nativeBuildInputs = [
cython cython_3
pdm-backend
setuptools
]; ];
preBuild = ''
cythonize --inplace editdistance/bycython.pyx
'';
nativeCheckInputs = [ nativeCheckInputs = [
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ pythonImportsCheck = [

View File

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