24 buildPythonPackage rec {
29 disabled = pythonOlder "3.8";
31 src = fetchFromGitHub {
34 rev = "refs/tags/v${version}";
35 hash = "sha256-U1aMqcUZ3BcwqwOYh/qfG5PhacwBVioAgNc52uaoJL0";
39 substituteInPlace pyproject.toml \
40 --replace "--cov-report=" "" \
41 --replace "--cov-branch" ""
49 propagatedBuildInputs = [
59 ] ++ lib.optionals (pythonOlder "3.9") [
63 passthru.optional-dependencies = {
74 ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
77 export HOME=$(mktemp -d)
78 export MNE_SKIP_TESTING_DATASET_TESTS=true
79 export MNE_SKIP_NETWORK_TESTS=1
82 pythonImportsCheck = [
87 description = "Magnetoencephelography and electroencephalography in Python";
89 homepage = "https://mne.tools";
90 changelog = "https://mne.tools/stable/changes/v${version}.html";
91 license = licenses.bsd3;
92 maintainers = with maintainers; [ bcdarwin mbalatsko ];