depot/third_party/nixpkgs/pkgs/development/python-modules/mne-python/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

59 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
, numpy
, scipy
, pytestCheckHook
, pytestcov
, pytest-timeout
, h5py
, matplotlib
, nibabel
, pandas
, scikit-learn
}:
buildPythonPackage rec {
pname = "mne-python";
version = "0.23.0";
disabled = isPy27;
# PyPI dist insufficient to run tests
src = fetchFromGitHub {
owner = "mne-tools";
repo = pname;
rev = "v${version}";
sha256 = "02fcnfsrc6sccv6x2rnx86g0zw0ivk5s8gx230g6pxfg3lap6knv";
};
propagatedBuildInputs = [ numpy scipy ];
# all tests pass, but Pytest hangs afterwards - probably some thread hasn't terminated
doCheck = false;
checkInputs = [
pytestCheckHook
pytestcov
pytest-timeout
h5py
matplotlib
nibabel
pandas
scikit-learn
];
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 ];
};
}