From 04580165b399da72144c02f7b11dff93e69191f9 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 20 Oct 2022 02:13:19 +0000 Subject: [PATCH 1/2] python310Packages.mne-python: 1.2.0 -> 1.2.1 --- pkgs/development/python-modules/mne-python/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/mne-python/default.nix b/pkgs/development/python-modules/mne-python/default.nix index 71a37c16596..4446987d104 100644 --- a/pkgs/development/python-modules/mne-python/default.nix +++ b/pkgs/development/python-modules/mne-python/default.nix @@ -19,14 +19,14 @@ buildPythonPackage rec { pname = "mne-python"; - version = "1.2.0"; + version = "1.2.1"; # PyPI dist insufficient to run tests src = fetchFromGitHub { owner = "mne-tools"; repo = pname; rev = "refs/tags/v${version}"; - sha256 = "sha256-IqZYkPomS/AjZrPDZapPaZ1jhtrzAvi5MOd9rYrSdKo="; + sha256 = "sha256-PAgePQGf4pO+cciIk718Wlk0OEw4ltrhCdWRyDZzFh0="; }; propagatedBuildInputs = [ From f52d456fe25c65a5be1f217c29e064eefe9974ad Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 20 Oct 2022 09:12:26 +0200 Subject: [PATCH 2/2] python310Packages.mne-python: disable on older Python releases --- .../python-modules/mne-python/default.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/mne-python/default.nix b/pkgs/development/python-modules/mne-python/default.nix index 4446987d104..3aa925b63d2 100644 --- a/pkgs/development/python-modules/mne-python/default.nix +++ b/pkgs/development/python-modules/mne-python/default.nix @@ -15,18 +15,21 @@ , pooch , tqdm , setuptools +, pythonOlder }: buildPythonPackage rec { pname = "mne-python"; version = "1.2.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; - # PyPI dist insufficient to run tests src = fetchFromGitHub { owner = "mne-tools"; repo = pname; rev = "refs/tags/v${version}"; - sha256 = "sha256-PAgePQGf4pO+cciIk718Wlk0OEw4ltrhCdWRyDZzFh0="; + hash = "sha256-PAgePQGf4pO+cciIk718Wlk0OEw4ltrhCdWRyDZzFh0="; }; propagatedBuildInputs = [ @@ -55,14 +58,16 @@ buildPythonPackage rec { export MNE_SKIP_NETWORK_TESTS=1 ''; - # all tests pass, but Pytest hangs afterwards - probably some thread hasn't terminated + # All tests pass, but Pytest hangs afterwards - probably some thread hasn't terminated doCheck = false; - pythonImportsCheck = [ "mne" ]; + pythonImportsCheck = [ + "mne" + ]; meta = with lib; { - homepage = "https://mne.tools"; description = "Magnetoencephelography and electroencephalography in Python"; + homepage = "https://mne.tools"; license = licenses.bsd3; maintainers = with maintainers; [ bcdarwin ]; };