From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kMhEJu4RvGDxrAAAgWs5BA (envelope-from ) for ; Sun, 06 Jun 2021 02:08:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id wFmIIe4RvGCdVgAAB5/wlQ (envelope-from ) for ; Sun, 06 Jun 2021 00:08:14 +0000 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 BF78E23BE1 for ; Sun, 6 Jun 2021 02:08:13 +0200 (CEST) Received: from localhost ([::1]:35734 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lpgKq-0002cE-MM for larch@yhetil.org; Sat, 05 Jun 2021 20:08:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54458) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lpgKg-0002Zq-93 for guix-patches@gnu.org; Sat, 05 Jun 2021 20:08:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38771) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lpgKf-0004AO-Uv for guix-patches@gnu.org; Sat, 05 Jun 2021 20:08:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lpgKf-0004ov-JG for guix-patches@gnu.org; Sat, 05 Jun 2021 20:08:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#46955] [PATCH 1/3] gnu: Add python-sparse. References: <76dfa82e-53e2-c4fc-d002-df71f348cdc8@mdc-berlin.de> In-Reply-To: <76dfa82e-53e2-c4fc-d002-df71f348cdc8@mdc-berlin.de> Resent-From: =?UTF-8?Q?M=C4=83d=C4=83lin?= Ionel =?UTF-8?Q?Patra=C8=99cu?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 06 Jun 2021 00:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46955 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: <46955@debbugs.gnu.org> Cc: rekado@elephly.net, =?UTF-8?Q?M=C4=83d=C4=83lin?= Ionel =?UTF-8?Q?Patra=C8=99cu?= Received: via spool by 46955-submit@debbugs.gnu.org id=B46955.162293804118462 (code B ref 46955); Sun, 06 Jun 2021 00:08:01 +0000 Received: (at 46955) by debbugs.gnu.org; 6 Jun 2021 00:07:21 +0000 Received: from localhost ([127.0.0.1]:50311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpgJv-0004nT-G6 for submit@debbugs.gnu.org; Sat, 05 Jun 2021 20:07:21 -0400 Received: from b2062.mx.srv.dfn.de ([194.95.234.172]:38309) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpgJs-0004nD-NA for 46955@debbugs.gnu.org; Sat, 05 Jun 2021 20:07:13 -0400 Received: from localhost (localhost [127.0.0.1]) by b2062.mx.srv.dfn.de (Postfix) with ESMTP id 3C16C1600B8; Sun, 6 Jun 2021 02:07:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h= content-transfer-encoding:content-type:content-type:mime-version :x-mailer:message-id:date:date:subject:subject:from:from :received:received:received; s=mdc; t=1622938025; x=1624752426; bh=z09BWfLtSeUg+iUwIuKT8U2XQgaTYM1YTjDc4ZJZTGE=; b=jjQ9AO9qu/qX i1A156klA2G/K4IstZLzjTPeoWAq+8g0dj1bOArEcdQ9FjLBJvSRVNL4loikRpzz jEXRrpHer50gIO7amto/y9xAj//u8GLH9a+H5+TeTVlMUFPnOFcn9BVlvvAHqVm6 VVPamcnVCaMUmmpO1Zdf8dLLXJzjokU= Received: from b2062.mx.srv.dfn.de ([127.0.0.1]) by localhost (mgw4-tub.srv.dfn.de [127.0.0.1]) (amavisd-new, port 20134) with ESMTP id NSEKTyjYoZMW; Sun, 6 Jun 2021 02:07:05 +0200 (CEST) Received: from SW-IT-P-EX4.mdc-berlin.net (mgw4.mdc-berlin.de [141.80.113.62]) by b2062.mx.srv.dfn.de (Postfix) with ESMTPS; Sun, 6 Jun 2021 02:07:05 +0200 (CEST) Received: from Guix-Ubuntu18.04 (141.80.113.106) by SW-IT-P-EX4.mdc-berlin.net (141.80.113.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.10; Sun, 6 Jun 2021 02:07:04 +0200 From: =?UTF-8?Q?M=C4=83d=C4=83lin?= Ionel =?UTF-8?Q?Patra=C8=99cu?= Date: Sun, 6 Jun 2021 02:06:49 +0200 Message-ID: <20210606000651.28252-1-madalinionel.patrascu@mdc-berlin.de> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [141.80.113.106] X-ClientProxiedBy: SW-IT-P-EX3.mdc-berlin.net (141.80.113.61) To SW-IT-P-EX4.mdc-berlin.net (141.80.113.62) X-TM-AS-Product-Ver: SMEX-14.0.0.3080-8.6.1012-26202.003 X-TM-AS-Result: No-10--2.213100-8.000000 X-TMASE-MatchedRID: JsCi/JRnBFH/R1NSMc2qCXycvC6I0dJIS1zwNuiBtITfUZT83lbkEJwl bZPQQ0yzb1TGnuLRfUkctkosP3yazCq+GZ9ZHxIhUYXhMajr0x53G1bsm5zfjMZygq/CPmro6n1 Gl4gVhHhV9cEoYbjAXbc/ZCLk5AauxmNZL79yeAxSFqtD2wqeMV7OZ6hrwwnz/gMNehoKqTuXzC wUPmVFK+awqowSxfEnLb6XLHjqIvT7lPrMqaVmF1XXOFXDx25iF430d3dMHka8B7vl7G5M0USuy wxB3Ejk51xw3PCMlNY3HexY7VSIcWcOYd1wAQIAAD5jSg1rFtBbV4KUZZg3KOcJOFqc/+CEYmUf TlXs3OOTKxCEEoHeWpfAZqrFvhSOow4viWN+bNz0VCHd+VQiHgseQVcTRnF2lwV2iaAfSWeDGx/ OQ1GV8t0H8LFZNFG7doMssNsUwYVtH7py2mvPPfIWdF0cpec123hXtA//3sx6dbk5o2QFfNC4vf Hpz8nv70vMLL1IbJl/vFbd53rshd0wC0yCvbeT4PtO+H6AT5HX7GF+64huyLjmNKuuvgamoYI1e rIuEsW+g2RZj2FKy60Cnu9RmLpv X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--2.213100-8.000000 X-TMASE-Version: SMEX-14.0.0.3080-8.6.1012-26202.003 X-TM-SNTS-SMTP: 6FC3FDB4BEA1D5D61810400AA05C087C2A3CFAF259531CB05E39F72620BF9B452000:F 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622938094; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: 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=EwN1d198t34IhaP8zzX7um25UvDoop162bvUDMLqRWE=; b=j4CUXerQyV9Fhv+z8YftIRDJEb5Au26S2FjkTw1Ph6/UczpezwrxCi2+zDwhyz3LCAIiR/ /14x3L2zwlTvbm25rbPnDr5veuW0y9bP6UVVMdu91N839obtwN1Qz+/m/W+F2DpK0zeEpf aomuhRtCYm8NAY7NWT/7+YswlAQhR9LtXkaSH419kqTKns3I9EOtsywZuAE3s3lxA8ziFb QdU+wZ2VhrRQTHaeyQRCb7CH+Rb9Y2q5Jr1c/R44cT2i4+/Rtje3dSKql0p2h5YLzU5zL2 RsW81uNk8hWYbwYnRQyy9Ie5jZ6IV/Ws1jbP75ZTFG7havS6+ZhoeSL4elCY6A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622938094; a=rsa-sha256; cv=none; b=uh9jW6rAB4Ft/rvEvq/ACirV4UJ8Lal+F8MGuZuYOQpXoZwBT2LCEREGSwL8OxxHvrASrP tU9Gs0/CzGNbSDqWhbWvjmXxXkii5NBbkIsMQOFRFbIUDHNYz910d48Bc5pSJat+Fg7Ue5 V0dt8vk932/epjXz69k/E3AZ4I9CiwqEaXJwE3/lxgn+StWHb2+xpnwGq8604VKJzFo3NA PXSB69HUI4H66voDbrj5IWiH1v1plX1RBVGT/xn2i3j8EtK5RKGo8g0f08Q3Y/r9wDV4NE dDhD1yzicoO/lFzOZzYUdF3R0QTjF8Ttcs+35tQmnNOG7WetwljzzM0cw7aEgg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mdc-berlin.de header.s=mdc header.b=jjQ9AO9q; dmarc=fail reason="SPF not aligned (relaxed)" header.from=mdc-berlin.de (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 1.17 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mdc-berlin.de header.s=mdc header.b=jjQ9AO9q; dmarc=fail reason="SPF not aligned (relaxed)" header.from=mdc-berlin.de (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: BF78E23BE1 X-Spam-Score: 1.17 X-Migadu-Scanner: scn1.migadu.com X-TUID: UL73oLm1UtgI * gnu/packages/python-xyz.scm(python-sparse): New variable. --- gnu/packages/python-xyz.scm | 47 ++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index b63c2852d5..a4fe31a01f 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -67,7 +67,7 @@ ;;; Copyright © 2019, 2020 Giacomo Leidi ;;; Copyright © 2019 Wiktor Żelazny ;;; Copyright © 2019, 2020 Tanguy Le Carrour -;;; Copyright © 2019 Mădălin Ionel Patrașcu +;;; Copyright © 2019, 2021 Mădălin Ionel Patrașcu ;;; Copyright © 2020 Riku Viitanen ;;; Copyright © 2020 Jakub Kądziołka ;;; Copyright © 2020 sirgazil @@ -5147,6 +5147,51 @@ objects.") (define-public python2-colormath (package-with-python2 python-colormath)) +(define-public python-sparse + (package + (name "python-sparse") + (version "0.12.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "sparse" version)) + (sha256 + (base32 + "05lmzckv69cvxavhdr36k803bgr5dl04cppglid1l880xswc759c")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "python" "-m" "pytest" "-v"))))))) + (propagated-inputs + `(("python-numba" ,python-numba) + ("python-numpy" ,python-numpy) + ("python-scipy" ,python-scipy))) + (native-inputs + `(("python-dask" ,python-dask) + ("python-pytest" ,python-pytest) + ("python-pytest-black" ,python-pytest-black) + ("python-pytest-cov" ,python-pytest-cov))) + (home-page "https://github.com/pydata/sparse/") + (synopsis "Library for multi-dimensional sparse arrays") + (description + "This package implements sparse arrays of arbitrary dimension on top of +@code{numpy} and @code{scipy.sparse}. Sparse array is a matrix in which most +of the elements are zero. @code{python-sparse} generalizes the +@code{scipy.sparse.coo_matrix} and @code{scipy.sparse.dok_matrix} layouts, but +extends beyond just rows and columns to an arbitrary number of dimensions. +Additionally, this project maintains compatibility with the +@code{numpy.ndarray} interface rather than the @code{numpy.matrix} interface +used in @code{scipy.sparse}. These differences make this project useful in +certain situations where @code{scipy.sparse} matrices are not well suited, but +it should not be considered a full replacement. It lacks layouts that are not +easily generalized like @dfn{compressed sparse row/column}(CSR/CSC) and +depends on @code{scipy.sparse} for some computations.") + (license license:bsd-3))) + (define-public python-spectra (package (name "python-spectra") -- 2.31.1