From 9042474643c43e82ca0ff155199a2fbf7af15fb6 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Mon, 5 May 2025 23:28:40 +0200 Subject: [PATCH] python3Packages.mne: use pytest-cov-stub --- pkgs/development/python-modules/mne/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/mne/default.nix b/pkgs/development/python-modules/mne/default.nix index 1cf7dcc1f19b..308e455b6cd4 100644 --- a/pkgs/development/python-modules/mne/default.nix +++ b/pkgs/development/python-modules/mne/default.nix @@ -7,6 +7,7 @@ numpy, scipy, pytestCheckHook, + pytest-cov-stub, pytest-timeout, matplotlib, decorator, @@ -41,10 +42,6 @@ buildPythonPackage rec { env.SETUPTOOLS_SCM_PRETEND_VERSION = stableVersion; postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail "--cov-report=" "" \ - --replace-fail "--cov-branch" "" - substituteInPlace doc/conf.py \ --replace-fail '"optipng"' '"${lib.getExe optipng}"' substituteInPlace mne/utils/config.py \ @@ -76,6 +73,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook + pytest-cov-stub pytest-timeout ] ++ lib.flatten (builtins.attrValues optional-dependencies);