From patchwork Mon Sep 27 11:24:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Gruber X-Patchwork-Id: 33355 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 95A1627BBE3; Mon, 27 Sep 2021 12:31:33 +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, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 ESMTPS id 5B05E27BBE1 for ; Mon, 27 Sep 2021 12:31:33 +0100 (BST) Received: from localhost ([::1]:45386 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUor6-0007Rx-EY for patchwork@mira.cbaines.net; Mon, 27 Sep 2021 07:31:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUolo-0003FC-Hg for guix-patches@gnu.org; Mon, 27 Sep 2021 07:26:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56564) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUoln-00005f-NB for guix-patches@gnu.org; Mon, 27 Sep 2021 07:26:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mUoln-0001OA-KF for guix-patches@gnu.org; Mon, 27 Sep 2021 07:26:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50812] [PATCH v3 5/6] gnu: Add python-geopandas. Resent-From: Felix Gruber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Sep 2021 11:26:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50812 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50812@debbugs.gnu.org Cc: Felix Gruber , Xinglu Chen , Maxime Devos Received: via spool by 50812-submit@debbugs.gnu.org id=B50812.16327419425264 (code B ref 50812); Mon, 27 Sep 2021 11:26:03 +0000 Received: (at 50812) by debbugs.gnu.org; 27 Sep 2021 11:25:42 +0000 Received: from localhost ([127.0.0.1]:39869 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUolR-0001Mp-RH for submit@debbugs.gnu.org; Mon, 27 Sep 2021 07:25:42 -0400 Received: from mout01.posteo.de ([185.67.36.65]:55675) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUolH-0001Ll-5R for 50812@debbugs.gnu.org; Mon, 27 Sep 2021 07:25:31 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 97074240029 for <50812@debbugs.gnu.org>; Mon, 27 Sep 2021 13:25:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1632741925; bh=V4+/7t4y7rQ5k7EZ7XV8Bns2Xu0zlLg6vGHkU8GEg6I=; h=From:To:Cc:Subject:Date:From; b=pgXcRyDNq9OfKEfLw2PDdd3xFn19DisI91HRE7ogWsJ55IrtNCeNmr+dN2np3bdtf hM6MRc/wLnkxtKLX2+l0yIVuz6ug9joQCoHAS2hhC8jtSPcLyKUXQO+bRZ5oq/hdgR YWS1QCLpYHDpVu+hfGAzhe9Uv/GqruHfTM+1NlSpfK7NHXWdD0VMsjxoltT+dW18pS CGYg0zPnHhUrVgqi+reDy+ltUcOYntFNGvH4TZqNndxe+p+4feoWjgUimyGqMKBxl6 7ZhtpW8ZmI4ktemg1g3i3aHvC8+XSCp99Q/2FWV5R1skvsdOVZn2S6xIYr1Yo/k1Pd BDX3/0JXLJ/Mw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HJ0g85thPz9rxG; Mon, 27 Sep 2021 13:25:24 +0200 (CEST) From: Felix Gruber Date: Mon, 27 Sep 2021 11:24:56 +0000 Message-Id: <20210927112457.2118-6-felgru@posteo.net> In-Reply-To: <20210927112457.2118-1-felgru@posteo.net> References: <20210926085219.13547-1-felgru@posteo.net> <20210927112457.2118-1-felgru@posteo.net> 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/geo.scm (python-geopandas): New variable. --- gnu/packages/geo.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm index c4cea0fa3a..2e9c6b6c8f 100644 --- a/gnu/packages/geo.scm +++ b/gnu/packages/geo.scm @@ -731,6 +731,47 @@ systems and integrates readily with other Python GIS packages such as pyproj, Rtree, and Shapely.") (license license:bsd-3))) +(define-public python-geopandas + (package + (name "python-geopandas") + (version "0.9.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "geopandas" version)) + (sha256 + (base32 + "02k389zyyjv51gd09c92vlr83sv46awdq0066jgh5i24vjs2m5v3")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" + ; Disable test that fails with + ; NotImplementedError in pandas. + "-k" "not test_fillna_no_op_returns_copy" + ; Disable tests that require internet access. + "-m" "not web"))))))) + (propagated-inputs + `(("python-fiona" ,python-fiona) + ("python-pandas" ,python-pandas) + ("python-pyproj" ,python-pyproj) + ("python-shapely" ,python-shapely))) + (native-inputs + `(("python-pytest" ,python-pytest))) + (home-page "http://geopandas.org") + (synopsis "Geographic pandas extensions") + (description "The goal of GeoPandas is to make working with +geospatial data in Python easier. It combines the capabilities of +Pandas and Shapely, providing geospatial operations in Pandas and a +high-level interface to multiple geometries to Shapely. GeoPandas +enables you to easily do operations in Python that would otherwise +require a spatial database such as PostGIS.") + (license license:bsd-3))) + (define-public mapnik (package (name "mapnik")