Merge staging-next into staging
This commit is contained in:
commit
871a7b4f28
|
@ -42,6 +42,10 @@ buildPythonPackage rec {
|
|||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"-W" "ignore::pytest.PytestRemovedIn8Warning"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# Tests require networking
|
||||
"examples"
|
||||
|
|
|
@ -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 = [
|
||||
|
|
|
@ -14,6 +14,11 @@ buildPythonPackage rec {
|
|||
sha256 = "0vm1r1jlaiagj0l9yf7j6zn9w3733dr2169911c0svgrr3gwiwn9";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pasta/augment/inline_test.py \
|
||||
--replace-fail assertRaisesRegexp assertRaisesRegex
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
six
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue