Merge staging-next into staging
This commit is contained in:
commit
871a7b4f28
|
@ -42,6 +42,10 @@ buildPythonPackage rec {
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pytestFlagsArray = [
|
||||||
|
"-W" "ignore::pytest.PytestRemovedIn8Warning"
|
||||||
|
];
|
||||||
|
|
||||||
disabledTestPaths = [
|
disabledTestPaths = [
|
||||||
# Tests require networking
|
# Tests require networking
|
||||||
"examples"
|
"examples"
|
||||||
|
|
|
@ -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 = [
|
||||||
|
|
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user