From patchwork Sun Sep 26 17:41:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Felix Gruber X-Patchwork-Id: 33327 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 B658F27BBE3; Sun, 26 Sep 2021 18:44:17 +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 6F54A27BBE1 for ; Sun, 26 Sep 2021 18:44:17 +0100 (BST) Received: from localhost ([::1]:47140 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUYCG-00066c-G0 for patchwork@mira.cbaines.net; Sun, 26 Sep 2021 13:44:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUYC2-00066H-Jn for guix-patches@gnu.org; Sun, 26 Sep 2021 13:44:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55385) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUYC2-0004gH-CB for guix-patches@gnu.org; Sun, 26 Sep 2021 13:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mUYC2-0000G6-AV for guix-patches@gnu.org; Sun, 26 Sep 2021 13:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50812] [PATCH v2 4/5] gnu: Add python-fiona. Resent-From: Felix Gruber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 26 Sep 2021 17:44:02 +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 , Maxime Devos Received: via spool by 50812-submit@debbugs.gnu.org id=B50812.1632678189906 (code B ref 50812); Sun, 26 Sep 2021 17:44:02 +0000 Received: (at 50812) by debbugs.gnu.org; 26 Sep 2021 17:43:09 +0000 Received: from localhost ([127.0.0.1]:38694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUYBA-0000ES-Tj for submit@debbugs.gnu.org; Sun, 26 Sep 2021 13:43:09 -0400 Received: from mout01.posteo.de ([185.67.36.65]:46795) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUYB5-0000Cv-EG for 50812@debbugs.gnu.org; Sun, 26 Sep 2021 13:43:04 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 737F3240028 for <50812@debbugs.gnu.org>; Sun, 26 Sep 2021 19:42:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1632678176; bh=jkRaAlZccSzyTao/MgJ2KZsNDZt6hnCOp2zgFvb2KMo=; h=From:To:Cc:Subject:Date:From; b=JWiAz+IQQ87lqY9lbn5ZpS0W01qf3rlv0vllBvAfDPWUn4QJQIghlTg3hxoKqQFJU 3W0TBW1Mg5ILenk834m11zo5du3PVD3tVmYxmbnkVdlfyNUBLt195hyIc5nmrUSmEG E65kiME58oMRimxWVKq4VUWcHkMEe3FgX3G2qpGovEWxcTAFfX6Oh7UVFk4Mj2z3T2 hLq0Z/3MeFmjJaNKWsgXLOkpg+fvxRHNxDNevAqzylc8HD5U3LWzeL4o1pG+0u2F7l 9FPbAsrFjLTI/q1gOfkzih8lJTIq3gfB2dZC/JGHk8qRPFjRd2DJ39p+rV7b4IsZuS 7rPSw917ZUL9g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HHY5C3dk1z9rxR; Sun, 26 Sep 2021 19:42:55 +0200 (CEST) From: Felix Gruber Date: Sun, 26 Sep 2021 17:41:50 +0000 Message-Id: <20210926174150.26146-5-felgru@posteo.net> In-Reply-To: <20210926085219.13547-1-felgru@posteo.net> References: <20210926085219.13547-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-fiona): New variable. --- gnu/packages/geo.scm | 57 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm index ee1c9c5674..e47f97bf8c 100644 --- a/gnu/packages/geo.scm +++ b/gnu/packages/geo.scm @@ -674,6 +674,63 @@ projections.") "Python interface to PROJ (cartographic projections and coordinate transformations library)") (license license:expat))) +(define-public python-fiona + (package + (name "python-fiona") + (version "1.8.20") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Fiona" version)) + (sha256 + (base32 + "0fql7i7dg1xpbadmk8d26dwp91v7faixxc4wq14zg0kvhp9041d7")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'check 'remove-local-fiona + (lambda _ + ; This would otherwise interfere with finding the installed + ; fiona when running tests. + (delete-file-recursively "fiona"))) + (replace 'check + (lambda* (#:key tests? inputs outputs #:allow-other-keys) + (add-installed-pythonpath inputs outputs) + (when tests? + (invoke "pytest" "-m" "not network and not wheel"))))))) + (inputs + `(("gdal" ,gdal))) + (propagated-inputs + `(("python-attrs" ,python-attrs) + ("python-certifi" ,python-certifi) + ("python-click" ,python-click) + ("python-click-plugins" ,python-click-plugins) + ("python-cligj" ,python-cligj) + ("python-munch" ,python-munch) + ("python-setuptools" ,python-setuptools) + ("python-six" ,python-six) + ("python-pytz" ,python-pytz))) + (native-inputs + `(("gdal" ,gdal) ; for gdal-config + ("python-boto3" ,python-boto3) + ("python-cython" ,python-cython) + ("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov))) + (home-page "http://github.com/Toblerity/Fiona") + (synopsis + "Fiona reads and writes spatial data files") + (description + "Fiona is GDAL’s neat and nimble vector API for Python programmers. +Fiona is designed to be simple and dependable. It focuses on reading and +writing data in standard Python IO style and relies upon familiar Python +types and protocols such as files, dictionaries, mappings, and iterators +instead of classes specific to OGR. Fiona can read and write real-world +data using multi-layered GIS formats and zipped virtual file systems and +integrates readily with other Python GIS packages such as pyproj, Rtree, +and Shapely.") + (license license:bsd-3))) + (define-public mapnik (package (name "mapnik")