From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2LrDA8g5UGHxeQEAgWs5BA (envelope-from ) for ; Sun, 26 Sep 2021 11:13:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id YNMEO8c5UGETcAAA1q6Kng (envelope-from ) for ; Sun, 26 Sep 2021 09:13:43 +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 B6BCC2A282 for ; Sun, 26 Sep 2021 11:13:43 +0200 (CEST) Received: from localhost ([::1]:38408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUQEA-0005ix-RB for larch@yhetil.org; Sun, 26 Sep 2021 05:13:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50584) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUPzz-0002DW-Cp for guix-patches@gnu.org; Sun, 26 Sep 2021 04:59:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52505) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUPzz-0004gl-1w for guix-patches@gnu.org; Sun, 26 Sep 2021 04:59:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mUPzz-0002aT-1W for guix-patches@gnu.org; Sun, 26 Sep 2021 04:59:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50812] [PATCH 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 08:59: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 X-Debbugs-Original-To: 50812@debbugs.gnu.org, guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16326467239890 (code B ref -1); Sun, 26 Sep 2021 08:59:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Sep 2021 08:58:43 +0000 Received: from localhost ([127.0.0.1]:35813 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUPze-0002ZM-MY for submit@debbugs.gnu.org; Sun, 26 Sep 2021 04:58:43 -0400 Received: from lists.gnu.org ([209.51.188.17]:40168) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUPzb-0002Z4-Mr for submit@debbugs.gnu.org; Sun, 26 Sep 2021 04:58:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50526) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUPzY-0001Tv-7J for guix-patches@gnu.org; Sun, 26 Sep 2021 04:58:37 -0400 Received: from mout01.posteo.de ([185.67.36.65]:51845) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUPzV-0004IL-FX for guix-patches@gnu.org; Sun, 26 Sep 2021 04:58:36 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 357D9240029 for ; Sun, 26 Sep 2021 10:58:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1632646711; bh=iLk5bnrWloPMVVO6ArGRg8GwdA/5hi4wfX/RjiiUn6c=; h=From:To:Cc:Subject:Date:From; b=hu2nLztfyekQXnKQ1B3xbqWY97xb6oNVL3YlJX3x7ZHTMyLw/60Xw8r0PGAFar/2I lUcBNkeRgpNPHo9pYoD3MH0Ytw7z4psH8DFcSLelCDQ1Wv+3c92gFfh5IgUN/QCl+D CDSp0cjf4EudC5PcqUDZj593CZpMLv1Q7mFPwBBNoyyj8ztNy21fBwEFkLtA88KeuO CRJvIW8iJGdXRaBowUZyd87jrxxEsxh62s+Rxz1qu7RDWUsR6GmtDcmnp65A08NeB5 ksPje+N3TflO9tUYNND+7Pdqrbwggk0fJB6dK7aod+2trkucDmuuypR2qqFKRGLwd8 fAeN61A/en6Aw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HHKS653xNz9rxH; Sun, 26 Sep 2021 10:58:30 +0200 (CEST) From: Felix Gruber Date: Sun, 26 Sep 2021 08:57:32 +0000 Message-Id: <20210926085733.14128-4-felgru@posteo.net> In-Reply-To: <20210926085733.14128-1-felgru@posteo.net> References: <20210926085219.13547-1-felgru@posteo.net> <20210926085733.14128-1-felgru@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=felgru@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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=1632647623; 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=ACeOTAllXN9Q1AvWZoLsloPf63J0rOm/jxB/8e6UG8k=; b=LBcrd39rdDb6Ftz7H/ouQnaLwZqsQGaTtpShN7MTUaHpSuhqYBmOW2bRivMCdphSl1YZWf OPt3bCqxvQN1mfNlxY10NsJImfSSAgEVZYdthctHejWthW1sLo14Fu0SAEryrzOcPrynL7 5kGhcuhOyHv7BzdaoykBnqK4cnF+jIlYCmU52am35OWDfLAu9lIGtYEysDrl/IQrXpRVDY goQ11V+jZanSqgPrtIjWVKBt5fhuoLswi/LWK0sn0Bal+gtIQMFoHHZ8jjq4UvIILBYSGU 9L1KgQia5+fr5H5VlwwXAsyXO7YzBo/RgCgv8YAcbbfDd1TnJNaLxQSp8+e9Zw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632647623; a=rsa-sha256; cv=none; b=WxpQ5JtV4zXWX24NXaTwv3j2U2XI2YZGdza78Thljte8lpLNXt9mU2xozVS7w7jHTOoTKX QlNarYNTussSn3sFoDkdnl0sAkhHtuqboyGDTH8aPDVHrRtyauWBQAsze18kaSo0UTFRFv jNbh2g2U3WW0aTjLzYPkB2+waA+Qgbw9bxywr8KSvy6CdvdqE+QJune2ELZbep4wtTPfRg zsel7X713cZfehQiNUG/Cxc9E8seyGuRSjUtj6B1ie/OX9K8YPmS6XFCgggP3MgynNZ0Ga b5h3FuvKLBhN9uMJKy9VODDK2sWashoABYQz7IFo6/BqhguZp6Z/WsWDd2WydQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=hu2nLztf; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (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.21 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=hu2nLztf; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (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: B6BCC2A282 X-Spam-Score: 1.21 X-Migadu-Scanner: scn0.migadu.com X-TUID: wOrhuTIodvtM * gnu/packages/geo.scm (python-fiona): New variable. --- gnu/packages/geo.scm | 64 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm index ee1c9c5674..114677dc27 100644 --- a/gnu/packages/geo.scm +++ b/gnu/packages/geo.scm @@ -674,6 +674,70 @@ 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? outputs #:allow-other-keys) + (define (python-path dir) + (string-append dir "/lib/python" + ,(version-major+minor + (package-version python)) + "/site-packages")) + (let ((out (assoc-ref outputs "out"))) + (setenv "PYTHONPATH" (string-append (python-path out) ":" + (getenv "PYTHONPATH"))) + (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") -- 2.30.2