diff --git a/pyproject.toml b/pyproject.toml index 3e1e86348b..86f5d27103 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,7 +64,8 @@ extractors = [ "MEArec>=1.8", "pynwb>=2.6.0", "hdmf-zarr>=0.11.0", - "pyedflib>=0.1.30", + #"pyedflib>=0.1.30", + "pyedflib>=0.1.30; python_version<'3.13'", # tests are failling with py3.13 "sonpy;python_version<'3.10'", "lxml", # lxml for neuroscope "scipy", diff --git a/src/spikeinterface/extractors/tests/test_neoextractors.py b/src/spikeinterface/extractors/tests/test_neoextractors.py index 0eb43535aa..d77f2c4555 100644 --- a/src/spikeinterface/extractors/tests/test_neoextractors.py +++ b/src/spikeinterface/extractors/tests/test_neoextractors.py @@ -380,6 +380,15 @@ class AlphaOmegaEventTest(EventCommonTestSuite, unittest.TestCase): ] +try: + import pyedflib + + HAVE_PYEDF = True +except: + HAVE_PYEDF = False + + +@pytest.mark.skipif(not (HAVE_PYEDF), reason="pyedflib is not installed") class EDFRecordingTest(RecordingCommonTestSuite, unittest.TestCase): ExtractorClass = EDFRecordingExtractor downloads = ["edf"]