mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-23 16:31:21 +08:00
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
75 lines
1.2 KiB
Nix
75 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, numpy
|
|
, scipy
|
|
, pytestCheckHook
|
|
, pytest-timeout
|
|
, h5py
|
|
, matplotlib
|
|
, nibabel
|
|
, pandas
|
|
, scikit-learn
|
|
, decorator
|
|
, jinja2
|
|
, pooch
|
|
, tqdm
|
|
, setuptools
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mne-python";
|
|
version = "1.3.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mne-tools";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-3N9S8QhQ3vtC9SZBQqvwVpE8V062VVWTV3nBhPI1lmA=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
decorator
|
|
jinja2
|
|
matplotlib
|
|
numpy
|
|
pooch
|
|
scipy
|
|
setuptools
|
|
tqdm
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
h5py
|
|
nibabel
|
|
pandas
|
|
pytestCheckHook
|
|
scikit-learn
|
|
pytest-timeout
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$TMP
|
|
export MNE_SKIP_TESTING_DATASET_TESTS=true
|
|
export MNE_SKIP_NETWORK_TESTS=1
|
|
'';
|
|
|
|
# All tests pass, but Pytest hangs afterwards - probably some thread hasn't terminated
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"mne"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Magnetoencephelography and electroencephalography in Python";
|
|
homepage = "https://mne.tools";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
};
|
|
}
|