From patchwork Thu Feb 3 19:29:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivien Kraus X-Patchwork-Id: 36961 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7749627BBEA; Thu, 3 Feb 2022 20:43:37 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 531C827BBE9 for ; Thu, 3 Feb 2022 20:43:35 +0000 (GMT) Received: from localhost ([::1]:52836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFix4-0000gP-Ff for patchwork@mira.cbaines.net; Thu, 03 Feb 2022 15:43:34 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54010) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFhpM-0007Cj-3S for guix-patches@gnu.org; Thu, 03 Feb 2022 14:31:36 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:35717) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFhos-0004Hx-2Y for guix-patches@gnu.org; Thu, 03 Feb 2022 14:31:27 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nFhos-0005y1-1N for guix-patches@gnu.org; Thu, 03 Feb 2022 14:31:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53402] Rebase it for the new python packages References: In-Reply-To: Resent-From: Vivien Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Feb 2022 19:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53402 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 53402@debbugs.gnu.org Received: via spool by 53402-submit@debbugs.gnu.org id=B53402.164391665122920 (code B ref 53402); Thu, 03 Feb 2022 19:31:01 +0000 Received: (at 53402) by debbugs.gnu.org; 3 Feb 2022 19:30:51 +0000 Received: from localhost ([127.0.0.1]:57847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFhoX-0005xO-OX for submit@debbugs.gnu.org; Thu, 03 Feb 2022 14:30:51 -0500 Received: from planete-kraus.eu ([89.234.140.182]:33660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFhoM-0005x3-8f for 53402@debbugs.gnu.org; Thu, 03 Feb 2022 14:30:40 -0500 Received: from planete-kraus.eu (localhost.lan [127.0.0.1]) by planete-kraus.eu (OpenSMTPD) with ESMTP id c73fc2d9 for <53402@debbugs.gnu.org>; Thu, 3 Feb 2022 19:30:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=planete-kraus.eu; h= message-id:subject:from:to:date:content-type:mime-version; s= dkim; bh=NKNkiR+UqtAuJlAM0N5zsK0j5k0=; b=PDKt/SYA5+7IfYXEfcwh8bE mHL/FrIhRR8EHxZ7VQtopXiUx6q1/JgBEalvrZ9S3jeaXmMpy02zDbQy3L9b2Zo8 5vmlBofjxlRmoPbi6il0Mt4l+C96Xf98nufn8oGaI/TqhPbFMRu0qYNdovXzPq1K vp1IFfHmDNFr8hiLcMhI= Received: by planete-kraus.eu (OpenSMTPD) with ESMTPSA id a770e956 (TLSv1.3:AEAD-CHACHA20-POLY1305-SHA256:256:NO) for <53402@debbugs.gnu.org>; Thu, 3 Feb 2022 19:29:29 +0000 (UTC) Message-ID: Date: Thu, 03 Feb 2022 20:29:03 +0100 User-Agent: Evolution 3.42.1 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Vivien X-ACL-Warn: , Vivien via Guix-patches X-Patchwork-Original-From: Vivien via Guix-patches via From: Vivien Kraus X-getmail-retrieved-from-mailbox: Patches Dear guix, We have 2 new python packages, so my patch series creates a trivial conflict. Here is a new version that you can apply directly. Best regards, Vivien From 08ad35d954b27d697688d10e04a0244091b50614 Mon Sep 17 00:00:00 2001 From: Vivien Kraus Date: Thu, 20 Jan 2022 23:21:25 +0100 Subject: [PATCH 18/18] gnu: Add python-mne. * gnu/packages/python-science.scm (python-mne): New variable. --- gnu/packages/python-science.scm | 53 +++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 6c0915e927..33e48b1be0 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -39,6 +39,7 @@ (define-module (gnu packages python-science) #:use-module (gnu packages databases) #:use-module (gnu packages gcc) #:use-module (gnu packages image-processing) + #:use-module (gnu packages jupyter) #:use-module (gnu packages machine-learning) #:use-module (gnu packages maths) #:use-module (gnu packages mpi) @@ -1193,3 +1194,55 @@ (define-public python-nitime to express with compact and semantically clear code.") (license license:bsd-3))) +(define-public python-mne + (package + (name "python-mne") + (version "0.24.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "mne" version)) + (sha256 + (base32 + "039h0pwcvl4ywfa4ij7w6x61czd322csqr59yhzfil3a7b8gzjrq")))) + (build-system python-build-system) + (arguments + (list #:tests? #f ;The test data are not distributed + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'set-home + (lambda _ + (setenv "HOME" + (getcwd)))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv" "mne"))))))) + (propagated-inputs (list python-numpy python-scipy)) + (native-inputs (list python-check-manifest + python-codespell + python-edflib + python-eeglabio + python-flake8 + python-flake8-array-spacing + python-imageio-ffmpeg + python-nbclient + python-nitime + python-numpydoc + python-pooch + python-pydocstyle + python-pytest + python-pytest-cov + python-pytest-harvest + python-pytest-timeout + python-sphinx-gallery + python-twine + python-wheel)) + (home-page "https://mne.tools/dev/") + (synopsis "MNE-Python project for MEG and EEG data analysis") + (description + "Open-source Python package for exploring, visualizing, and +analyzing human neurophysiological data: MEG, EEG, sEEG, ECoG, NIRS, and +more.") + (license license:bsd-3))) + + -- 2.34.0