From patchwork Sat Jun 20 18:30:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre Langlois X-Patchwork-Id: 22800 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 B5DFD27BBE1; Sat, 20 Jun 2020 19:31:37 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id AEC0E27BBE4 for ; Sat, 20 Jun 2020 19:31:36 +0100 (BST) Received: from localhost ([::1]:36846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmiHA-0004m5-38 for patchwork@mira.cbaines.net; Sat, 20 Jun 2020 14:31:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60982) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmiGc-0004lj-TG for guix-patches@gnu.org; Sat, 20 Jun 2020 14:31:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47194) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jmiGc-0005LI-K8 for guix-patches@gnu.org; Sat, 20 Jun 2020 14:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jmiGc-0000eJ-H5 for guix-patches@gnu.org; Sat, 20 Jun 2020 14:31:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41968] [PATCH 4/5] gnu: Add python-xarray. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 20 Jun 2020 18:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41968 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41968@debbugs.gnu.org Cc: Pierre Langlois Received: via spool by 41968-submit@debbugs.gnu.org id=B41968.15926778382454 (code B ref 41968); Sat, 20 Jun 2020 18:31:02 +0000 Received: (at 41968) by debbugs.gnu.org; 20 Jun 2020 18:30:38 +0000 Received: from localhost ([127.0.0.1]:58739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jmiGD-0000dW-Uk for submit@debbugs.gnu.org; Sat, 20 Jun 2020 14:30:38 -0400 Received: from mout.gmx.net ([212.227.15.15]:45213) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jmiGC-0000dI-1I for 41968@debbugs.gnu.org; Sat, 20 Jun 2020 14:30:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1592677830; bh=7Y2ohMYL7a8wiZ4Dl+wzphw8jtL9XP6B5wwVuC0NqC4=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:In-reply-to:Date; b=iUEor2Wn3fKNYUEAmllll9LDP1fnTOSlH1M/ZwK2sfdcBFM6WambtO+Bo4gT6fMuE TjHVkG0xSKxRkIrEbOqQ9n2I//ncVNyJmpwvittTYIwzmR5o9cefMR1RN56qpooS/b KoP1VGvQWZZJh2shufvbGAkKLBYwy7czllBlMJp0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from e119807-lin ([93.22.246.159]) by mail.gmx.com (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MPXd2-1jYsbc0Dfm-00MgRy; Sat, 20 Jun 2020 20:30:30 +0200 References: <87r1u9ha11.fsf@gmx.com> User-agent: mu4e 1.4.10; emacs 26.3 From: Pierre Langlois In-reply-to: <87r1u9ha11.fsf@gmx.com> Date: Sat, 20 Jun 2020 20:30:28 +0200 Message-ID: <877dw1h9ob.fsf@gmx.com> MIME-Version: 1.0 Content-Disposition: inline; filename=0004-gnu-Add-python-xarray.patch X-Provags-ID: V03:K1:xCR3pIcuqEoM2+Jf94ClB2S8bYSwAfy3V09taXf4mI2g8kiKSOy eL71EzvhdNJmHQgjUcdpRfA6G0pTmmRvyuXP736dXhoyDUP3RfnogT9VFv+ctHH+InnCYmV AoH8vvbPdeWyGOC1EItaTOasrqdkobHrV+sfIH8/ncJjjlPnz+vNLMe5j1ckBt3FEdY6Rdf 4hbNoR7lefOJ5GlAJQPoQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:eMyGpq0dUlA=:Fe1q6L9CFkRz+odiAppcXP WS0tvo5VYJ7H7HYHK01ziXcWGD5rMReufN0DwJUCk00ljeJtMZTDlqCIJChAZs1SORqc4H/w7 nxz+EJ6aRSdmO5l8E776nS7jh03EQeJ/Bz2uzzxzqds+NLoDvNSM7ac3qYdn/0YOzXW7umZ5x 8TMsopaTvGfy6acNXWSJQdrvWaMIonrHpYjFFncIOMLA5a/6dnqy7sFZuEaNjxMl0F475EaLi xYVqWHIgscqyefdzS8NjETEbH6wLAl6dsKh+OFy/qPO7nc0SZCSXZZubjYudnxdAP49tA/j2U ZCYJ4BDm9iP+MGgjh31bdb8pc64yNZfgjC1GC3Gz1Cw35T48b/S9/MO/TmRMPzph+5eVJGnx+ +CTdRkuot7B37hc8sVFMa86gmyyy0re6L0j7aku/MpacH8NKFmX1Bx32oklYqyKI/MzOhENHI /J1+Cd1CEAyzrN+IVuCS7rmvAHzoicAU06KOCG3BsyUal3P3FYWzDJz+swSy3D2AX1DXxv/OI g3OBJs2XVbBv3Ox7qegJhrsJQnr/iu2aZHoRkLg+E2EG0UUDQy19yO/uHCTRmfyXjVjiJNmd6 QQLMmNqzMygD3K53+fFpijclhV+Co4R6hRaP5n1eO2EL4dBdY39GFsnfcYhZH3JX3I1Rnyd24 SPjPS8rmOAjyU7ERo4xjWQWVjz1AhZpOhdBmBozyF5NKNiN2gUNKzIxU+dKdgVLNFXe2QCTQV I0CaTucauiPFEyDNPZTcT6ajH0Oz3jC7G6cq+RfyODZIuS8/Hf62u0GNvsXln0j85OKmaFQFR SThhca0QzRjOJdvw8zZeovtmcJ4qBxMtYbMuiZivcEbVY20aPPKpXGEz0RPDLbXlkYicZvrjd wed0b7UK/sToUqKQKvkrzk/l4GVkpA+eHEPnsImZJG+nywVhC1qrusdZ9UlQGAG+xBuLjwnXt z0fJOJBcc5zKgaBHLKtCsqYRuPb7Pm+/JLzIJ2KLOFpWCxlmRfozRNEpXgZ4+3HEMc8LhHLln /7d2G0MAPhkDWLxIJ8R/vAe0++oMePrynQqUvbpCWNjEASHTxcks9V8YRTsQeoocBUTGjsanv oYRoJ4q9EzbkMHa/XzvhOtX6f9EfcPxXzdJSOd4c2H12s/zjkZ/Wmw2Mc8HV9xwRRlYEVgVoV jGenyUQ+bcY+jpnqKoufssLZfcpv7qvWEmdgqzZieNtO4muzSBgrXlXECawhYykHahbItka9A Qs//kof5VFKd4Zhx2 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" X-getmail-retrieved-from-mailbox: Patches From 27ec21904f769c1e8114f767972d9037e1e9f68a Mon Sep 17 00:00:00 2001 From: Pierre Langlois Date: Thu, 18 Jun 2020 00:58:02 +0200 Subject: [PATCH 4/5] gnu: Add python-xarray. * gnu/package/python-science.scm (python-xarray): New variable. --- gnu/packages/python-science.scm | 35 +++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 55fc1be4f9..9348894530 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -354,3 +354,38 @@ doing practical, real world data analysis in Python.") (("if 'NULL byte' in msg:") "if 'NULL byte' in msg or 'line contains NUL' in msg:")) #t))))))) + +(define-public python-xarray + (package + (name "python-xarray") + (version "0.15.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "xarray" version)) + (sha256 + (base32 + "1yx8j66b7rn10m2l6gmn8yr9cn38pi5cj0x0wwpy4hdnhy6i7qv4")))) + (build-system python-build-system) + (native-inputs + `(("python-setuptools-scm" ,python-setuptools-scm) + ("python-pytest" ,python-pytest))) + (propagated-inputs + `(("python-numpy" ,python-numpy) + ("python-pandas" ,python-pandas))) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (invoke "pytest")))))) + (home-page "https://github.com/pydata/xarray") + (synopsis "N-D labeled arrays and datasets") + (description "Xarray (formerly xray) makes working with labelled +multi-dimensional arrays simple, efficient, and fun! + +Xarray introduces labels in the form of dimensions, coordinates and attributes +on top of raw NumPy-like arrays, which allows for a more intuitive, more +concise, and less error-prone developer experience. The package includes a +large and growing library of domain-agnostic functions for advanced analytics +and visualization with these data structures.") + (license license:asl2.0))) -- 2.26.2