23 buildPythonPackage rec {
28 disabled = pythonOlder "3.9";
30 src = fetchFromGitHub {
33 rev = "refs/tags/v${version}";
34 hash = "sha256-WPRTX8yB4oP/L5DjSq9M6WOmHJDpQv0sAbuosp7ZGVw=";
38 substituteInPlace pyproject.toml \
39 --replace-fail "--cov-report=" "" \
40 --replace-fail "--cov-branch" ""
60 optional-dependencies.hdf5 = [
68 ] ++ lib.flatten (builtins.attrValues optional-dependencies);
71 export HOME=$(mktemp -d)
72 export MNE_SKIP_TESTING_DATASET_TESTS=true
73 export MNE_SKIP_NETWORK_TESTS=1
77 # requires qtbot which is unmaintained/not in Nixpkgs:
78 "test_plotting_scalebars"
79 # tries to write a datetime object to hdf5, which fails:
83 pythonImportsCheck = [ "mne" ];
86 description = "Magnetoencephelography and electroencephalography in Python";
88 homepage = "https://mne.tools";
89 changelog = "https://mne.tools/stable/changes/v${version}.html";
90 license = licenses.bsd3;
91 maintainers = with maintainers; [