2020-12-09 12:39:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-timeout
|
|
|
|
, h5py
|
|
|
|
, matplotlib
|
|
|
|
, nibabel
|
|
|
|
, pandas
|
2021-05-20 23:08:51 +00:00
|
|
|
, scikit-learn
|
2022-09-09 14:08:57 +00:00
|
|
|
, decorator
|
|
|
|
, jinja2
|
|
|
|
, pooch
|
|
|
|
, tqdm
|
|
|
|
, setuptools
|
2022-10-21 18:38:19 +00:00
|
|
|
, pythonOlder
|
2020-12-09 12:39:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mne-python";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "1.6.0";
|
2022-10-21 18:38:19 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-12-09 12:39:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mne-tools";
|
|
|
|
repo = pname;
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-OoaXNHGL2svOpNL5GHcVRfQc9GxIRpZRhpZ5Hi1JTzM=";
|
2020-12-09 12:39:15 +00:00
|
|
|
};
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
decorator
|
|
|
|
jinja2
|
|
|
|
matplotlib
|
|
|
|
numpy
|
|
|
|
pooch
|
|
|
|
scipy
|
|
|
|
setuptools
|
|
|
|
tqdm
|
|
|
|
];
|
2020-12-09 12:39:15 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-12-09 12:39:15 +00:00
|
|
|
h5py
|
|
|
|
nibabel
|
|
|
|
pandas
|
2022-09-09 14:08:57 +00:00
|
|
|
pytestCheckHook
|
2021-05-20 23:08:51 +00:00
|
|
|
scikit-learn
|
2022-09-09 14:08:57 +00:00
|
|
|
pytest-timeout
|
2020-12-09 12:39:15 +00:00
|
|
|
];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2020-12-09 12:39:15 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$TMP
|
|
|
|
export MNE_SKIP_TESTING_DATASET_TESTS=true
|
|
|
|
export MNE_SKIP_NETWORK_TESTS=1
|
|
|
|
'';
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
# All tests pass, but Pytest hangs afterwards - probably some thread hasn't terminated
|
2022-09-09 14:08:57 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"mne"
|
|
|
|
];
|
2020-12-09 12:39:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Magnetoencephelography and electroencephalography in Python";
|
2022-10-21 18:38:19 +00:00
|
|
|
homepage = "https://mne.tools";
|
2020-12-09 12:39:15 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|