0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

python310Packages.mne-python: 1.0.3 -> 1.1.0

This commit is contained in:
Jonas Heinrich 2022-08-20 13:21:59 +02:00
parent 2364de14a7
commit 5e9296c30a

View file

@ -1,53 +1,63 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, isPy27
, numpy , numpy
, scipy , scipy
, pytestCheckHook , pytestCheckHook
, pytest-cov
, pytest-timeout , pytest-timeout
, h5py , h5py
, matplotlib , matplotlib
, nibabel , nibabel
, pandas , pandas
, scikit-learn , scikit-learn
, decorator
, jinja2
, pooch
, tqdm
, setuptools
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "mne-python"; pname = "mne-python";
version = "1.0.3"; version = "1.1.0";
disabled = isPy27;
# PyPI dist insufficient to run tests # PyPI dist insufficient to run tests
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mne-tools"; owner = "mne-tools";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
sha256 = "sha256-6eDS/hKqEQqUxJtnfsPhxw9b4p5CC1ifnxVCRBmVVA8="; sha256 = "sha256-p4brwO6uERM2vJdkJ34GdeAKk07QeVEmQrZMPcDjI2I=";
}; };
propagatedBuildInputs = [ numpy scipy ]; propagatedBuildInputs = [
decorator
# all tests pass, but Pytest hangs afterwards - probably some thread hasn't terminated jinja2
doCheck = false;
checkInputs = [
pytestCheckHook
pytest-cov
pytest-timeout
h5py
matplotlib matplotlib
numpy
pooch
scipy
setuptools
tqdm
];
checkInputs = [
h5py
nibabel nibabel
pandas pandas
pytestCheckHook
scikit-learn scikit-learn
pytest-timeout
]; ];
preCheck = '' preCheck = ''
export HOME=$TMP export HOME=$TMP
export MNE_SKIP_TESTING_DATASET_TESTS=true export MNE_SKIP_TESTING_DATASET_TESTS=true
export MNE_SKIP_NETWORK_TESTS=1 export MNE_SKIP_NETWORK_TESTS=1
''; '';
# all tests pass, but Pytest hangs afterwards - probably some thread hasn't terminated
doCheck = false;
pythonImportsCheck = [ "mne" ]; pythonImportsCheck = [ "mne" ];
meta = with lib; { meta = with lib; {