From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QOTDHNqhgmQo3gAASxT56A (envelope-from ) for ; Fri, 09 Jun 2023 05:51:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sEHoG9qhgmRwwAAAG6o9tA (envelope-from ) for ; Fri, 09 Jun 2023 05:51:54 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 384731613C for ; Fri, 9 Jun 2023 05:51:54 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7T9V-0001GU-0f; Thu, 08 Jun 2023 23:51:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q7T9T-0001Fc-3s for guix-patches@gnu.org; Thu, 08 Jun 2023 23:51:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q7T9S-0006yB-SD for guix-patches@gnu.org; Thu, 08 Jun 2023 23:51:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q7T9S-0008Hl-Np for guix-patches@gnu.org; Thu, 08 Jun 2023 23:51:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63619] [PATCH v2 3/9] gnu: Add python-einops. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 09 Jun 2023 03:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63619 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63619@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 63619-submit@debbugs.gnu.org id=B63619.168628263131725 (code B ref 63619); Fri, 09 Jun 2023 03:51:02 +0000 Received: (at 63619) by debbugs.gnu.org; 9 Jun 2023 03:50:31 +0000 Received: from localhost ([127.0.0.1]:58008 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7T8w-0008Fd-Tk for submit@debbugs.gnu.org; Thu, 08 Jun 2023 23:50:31 -0400 Received: from mout02.posteo.de ([185.67.36.66]:48023) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7T8u-0008FP-FG for 63619@debbugs.gnu.org; Thu, 08 Jun 2023 23:50:29 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id ED303240101 for <63619@debbugs.gnu.org>; Fri, 9 Jun 2023 05:50:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1686282623; bh=SZULgRpieMd3Fos6Dt7wI1pDTHO7CapzA5x3H5de8go=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=YN7R3MRQuZakaEw5vxuIG0ignUvKK6GxLIQ5TdW7Ln8wK7wTq+KKhW/gej8M1YmpK WBBqvljDh55fTEV+WUszmBl6zA7RwptE7BTAmzy1j/07oraA0zdmWbG+cXjm0xcid1 jrU7FzBM18gpG+M0uulVWWYKYw0LLlaAjF8FCBAx9XFokK6sCve5d7eraLK6fMb9vI Hop41UapaMV/JRsAZEQjXL86b3NsP5KDnFBnMJ0sLx+UwP25mRKGIHmKTUa1zfjHxk foGQ3iMecpHEQJCLWBNVzMHBAUprAGeYAi8teET8kBkVzkLU3/ezLT0JExAmL7a1Yu yK8PSEOcsmZPA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QcnCx1108z6tmv; Fri, 9 Jun 2023 05:50:20 +0200 (CEST) From: Vinicius Monego Date: Fri, 9 Jun 2023 03:49:35 +0000 Message-Id: <20230609034941.1807600-3-monego@posteo.net> In-Reply-To: <20230609034941.1807600-1-monego@posteo.net> References: <20230609034941.1807600-1-monego@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686282714; a=rsa-sha256; cv=none; b=WvDmniva8ucKEFIVHiqMt1gJV0i0dcw/CdDK6pRqUzYmlhCvkaJvCIqdG1bGZXFB0OBDA2 OI/GeeInk/9NbMmlraOgjBvZhoDxUJvNyEz+8B+zfiaYMDqsh+Xc0dUuaKekkYS3nYMPai qJpXnFil3U/o+W0Uru/k910zeQIdjZBXFegR85sAXqbDoBTldrDchq1fNftulx7QxXVAA4 KpEQCjgtfDRehLQ0xuxWJqQ0lLMUFu7Gep7rir6+JzWPu/wRvSQkyEDuHMjtqYeNzhPIPk HrkvdOENJtYYWeRWiSF/PYJ+2DWY14s6lv2Kf2aAsa+z3LUzipa+K7uyWxyx8w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=YN7R3MRQ; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686282714; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=uPgRQzA49uXZV+wVaurXPVnF6iMyu5up3lI6+CIHE7s=; b=t3WQWIx+kRV8SJUlHGtpwrbTRMgLYq+KlOZkwQto0qrDa8970pGD/i4N+M7w8tpCk3HYIm Lropj4nox6LJGxfa8QymmJzwMGnlSrAURIBbOMyT4BvtwxEvUGdTmwWAdZq5LSUQ83nFNm aMNRQs1zZQfU+Ra8o1FYpx6j2nYmIP+geX8A/JkawdwfFsmDNAtTIoRPwfXxXNEhjT7zlB vZ6VRDMXnvXrAMPQnITF0Q6hLDYuOYlTepnP7JDwYEJ1+9P4ysJ8kWWD8rLLaIFJgWuWdB OVs7HEP9N42tulyYJUIOVL2KMkTwUuMdhP5Y54gSp13cOFwl85lR9qKXLpsXuw== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=YN7R3MRQ; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -0.41 X-Spam-Score: -0.41 X-Migadu-Queue-Id: 384731613C X-TUID: q96JBwtlzj8l * gnu/packages/python-science.scm (python-einops): New variable. --- gnu/packages/python-science.scm | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 7d3319e367..91c3904783 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -669,6 +669,40 @@ (define-public python-geosketch necessary for reproducing the experiments in the paper.") (license license:expat))) +(define-public python-einops + (package + (name "python-einops") + (version "0.6.1") + (source (origin + (method git-fetch) ;PyPI misses .ipynb files required for tests + (uri (git-reference + (url "https://github.com/arogozhnikov/einops") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1h8p39kd7ylg99mh620xr20hg7v78x1jnj6vxwk31rlw2dmv2dpr")))) + (build-system pyproject-build-system) + (arguments + (list #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'set-backend + (lambda _ + ;; Einops supports different backends, but we test + ;; only NumPy for availability and simplicity. + (setenv "EINOPS_TEST_BACKENDS" "numpy")))))) + (native-inputs (list jupyter + python-hatchling + python-nbconvert + python-nbformat + python-parameterized + python-pytest)) + (propagated-inputs (list python-numpy)) + (home-page "https://einops.rocks/") + (synopsis "Tensor operations for different backends") + (description "Einops provides a set of tensor operations for NumPy and +multiple deep learning frameworks.") + (license license:expat))) + (define-public python-xarray (package (name "python-xarray") -- 2.34.1