mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
Merge pull request #105611 from bcdarwin/mne-python
This commit is contained in:
commit
62aaf352e7
2 changed files with 61 additions and 0 deletions
59
pkgs/development/python-modules/mne-python/default.nix
Normal file
59
pkgs/development/python-modules/mne-python/default.nix
Normal file
|
@ -0,0 +1,59 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, isPy27
|
||||
, numpy
|
||||
, scipy
|
||||
, pytestCheckHook
|
||||
, pytestcov
|
||||
, pytest-timeout
|
||||
, h5py
|
||||
, matplotlib
|
||||
, nibabel
|
||||
, pandas
|
||||
, scikitlearn
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mne-python";
|
||||
version = "0.21.2";
|
||||
|
||||
disabled = isPy27;
|
||||
|
||||
# PyPI dist insufficient to run tests
|
||||
src = fetchFromGitHub {
|
||||
owner = "mne-tools";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "18nfdbkffmxzkkbp3d4w8r2kfi0sxip3hy997d3mx6dy74jc7nmg";
|
||||
};
|
||||
|
||||
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
|
||||
scikitlearn
|
||||
];
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -3832,6 +3832,8 @@ in {
|
|||
|
||||
mnemonic = callPackage ../development/python-modules/mnemonic { };
|
||||
|
||||
mne-python = callPackage ../development/python-modules/mne-python { };
|
||||
|
||||
mnist = callPackage ../development/python-modules/mnist { };
|
||||
|
||||
mocket = callPackage ../development/python-modules/mocket { };
|
||||
|
|
Loading…
Reference in a new issue