From patchwork Thu Jan 20 22:46:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vivien Kraus X-Patchwork-Id: 36699 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 2BF9827BBEA; Fri, 21 Jan 2022 00:48:05 +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,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, 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 1EDE627BBE9 for ; Fri, 21 Jan 2022 00:48:03 +0000 (GMT) Received: from localhost ([::1]:52862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nAi5y-0003zB-7n for patchwork@mira.cbaines.net; Thu, 20 Jan 2022 19:48:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50816) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAgDr-0001mr-2f for guix-patches@gnu.org; Thu, 20 Jan 2022 17:48:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:38476) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nAgDq-0008Lk-PZ for guix-patches@gnu.org; Thu, 20 Jan 2022 17:48:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nAgDq-00038V-Lo for guix-patches@gnu.org; Thu, 20 Jan 2022 17:48:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53402] Add python-mne Resent-From: Vivien Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 20 Jan 2022 22:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53402 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 53402@debbugs.gnu.org X-Debbugs-Original-To: guix-patches Received: via spool by submit@debbugs.gnu.org id=B.164271885411910 (code B ref -1); Thu, 20 Jan 2022 22:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 Jan 2022 22:47:34 +0000 Received: from localhost ([127.0.0.1]:59612 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAgDF-00035q-1k for submit@debbugs.gnu.org; Thu, 20 Jan 2022 17:47:33 -0500 Received: from lists.gnu.org ([209.51.188.17]:44650) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAgD6-00035a-KZ for submit@debbugs.gnu.org; Thu, 20 Jan 2022 17:47:24 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50670) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAgD6-0008UO-Bx for guix-patches@gnu.org; Thu, 20 Jan 2022 17:47:16 -0500 Received: from [2a00:5881:4008:2810::309] (port=43528 helo=planete-kraus.eu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1nAgD1-0008FC-FH for guix-patches@gnu.org; Thu, 20 Jan 2022 17:47:16 -0500 Received: from planete-kraus.eu (localhost.lan [127.0.0.1]) by planete-kraus.eu (OpenSMTPD) with ESMTP id 83bcccc2 for ; Thu, 20 Jan 2022 22:47:07 +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=MeyAAXYulhR5xd9l3zC8eTzA8Mk=; b=dfYHQHue5oZiq7bZu0reC1d DD8a+iDEw2rkMEpyUYEkzJNzmXa2Cqmw2TTEoAz0oONSIXY5Dfc0X2eRF49lvz2k Sd4nu+BUp5SXAFnXApkRJIePJnswlJKZp8KdHhsQ/m3jedKEGpTZmhUEgSlC2Lz1 44UxDbUVJGKoccAiNnLU= Received: by planete-kraus.eu (OpenSMTPD) with ESMTPSA id 3811cfc8 (TLSv1.3:AEAD-CHACHA20-POLY1305-SHA256:256:NO) for ; Thu, 20 Jan 2022 22:47:02 +0000 (UTC) Message-ID: Date: Thu, 20 Jan 2022 23:46:54 +0100 User-Agent: Evolution 3.42.1 MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:5881:4008:2810::309 (failed) Received-SPF: pass client-ip=2a00:5881:4008:2810::309; envelope-from=vivien@planete-kraus.eu; helo=planete-kraus.eu X-Spam_score_int: 7 X-Spam_score: 0.7 X-Spam_bar: / X-Spam_report: (0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URI_DOTEDU=1.997 autolearn=no autolearn_force=no X-Spam_action: no action 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, I am trying to get python-mne package [1]. So far I’ve managed to get all the advertised dependencies, but I can’t get the tests to pass. For python-nitime, I get IndexError: tuple index out of range For python-mne, I get TypeError: annotate_nan() missing 1 required positional argument: 'raw' Both errors seem to occur because a function with optional or keyword arguments is called without enough arguments. However, I can disable all tests that call the function, but the error stays there. Can someone help me? Best regards, Vivien [1]: https://mne.tools/stable/index.html From 5c8b341c7d39cc88d723788416865e4d9e26b331 Mon Sep 17 00:00:00 2001 From: Vivien Kraus Date: Thu, 20 Jan 2022 15:39:12 +0100 Subject: [PATCH 01/18] gnu: Add python-imageio-ffmpeg. * gnu/packages/python-xyz.scm (python-imageio-ffmpeg): New variable. --- gnu/packages/python-xyz.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index eff1c4259b..c0b1fe9872 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -28678,3 +28678,36 @@ (define-public python-reedsolo but not binary streams.") (license license:public-domain))) +(define-public python-imageio-ffmpeg + (package + (name "python-imageio-ffmpeg") + (version "0.4.5") + (source (origin + (method url-fetch) + (uri (pypi-uri "imageio-ffmpeg" version)) + (sha256 + (base32 + "0ff14079izsyxwf6ki68k9a7w5krjlal7lwqvzg2bbddl92l5spj")))) + (build-system python-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (add-after 'unpack 'set-ffmpeg-exe + (lambda* (#:key inputs #:allow-other-keys) + ;; There are different strategies to find ffmpeg, we + ;; only fix the last resort, "system ffmpeg command" + (substitute* "imageio_ffmpeg/_utils.py" + (("exe = \"ffmpeg\"") + (format #f "exe = ~s" + (search-input-file + inputs "/bin/ffmpeg"))))))))) + (inputs (list ffmpeg)) + (home-page "https://github.com/imageio/imageio-ffmpeg") + (synopsis "@samp{ffmpeg} wrapper for Python") + (description + "The purpose of this project is to provide a simple and reliable +@samp{ffmpeg} wrapper for working with video files. It implements two simple +generator functions for reading and writing data from/to ffmpeg, which +reliably terminate the ffmpeg process when done. It also takes care of +publishing platform-specific wheels that include the binary @samp{ffmpeg} +executables.") + (license license:bsd-2))) -- 2.34.0