2020-12-09 12:39:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy27
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, pytestCheckHook
|
2021-07-24 12:14:16 +00:00
|
|
|
, pytest-cov
|
2020-12-09 12:39:15 +00:00
|
|
|
, pytest-timeout
|
|
|
|
, h5py
|
|
|
|
, matplotlib
|
|
|
|
, nibabel
|
|
|
|
, pandas
|
2021-05-20 23:08:51 +00:00
|
|
|
, scikit-learn
|
2020-12-09 12:39:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mne-python";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "0.24.1";
|
2020-12-09 12:39:15 +00:00
|
|
|
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
# PyPI dist insufficient to run tests
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mne-tools";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "0n91pj97xmpn0bmlv56q2117szlvvs4b52pjjlm3g8ny4xb3iwr0";
|
2020-12-09 12:39:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ numpy scipy ];
|
|
|
|
|
|
|
|
# all tests pass, but Pytest hangs afterwards - probably some thread hasn't terminated
|
|
|
|
doCheck = false;
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
2021-07-24 12:14:16 +00:00
|
|
|
pytest-cov
|
2020-12-09 12:39:15 +00:00
|
|
|
pytest-timeout
|
|
|
|
h5py
|
|
|
|
matplotlib
|
|
|
|
nibabel
|
|
|
|
pandas
|
2021-05-20 23:08:51 +00:00
|
|
|
scikit-learn
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "mne" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://mne.tools";
|
|
|
|
description = "Magnetoencephelography and electroencephalography in Python";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|