From patchwork Mon Sep 27 11:24:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Gruber X-Patchwork-Id: 33351 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 A798C27BBE3; Mon, 27 Sep 2021 12:26:41 +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 6927127BBE1 for ; Mon, 27 Sep 2021 12:26:41 +0100 (BST) Received: from localhost ([::1]:39934 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUomO-0003bi-Fz for patchwork@mira.cbaines.net; Mon, 27 Sep 2021 07:26:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUolo-0003FB-IJ for guix-patches@gnu.org; Mon, 27 Sep 2021 07:26:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56562) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUolm-00005Z-Tz 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 1mUolm-0001Nw-R8 for guix-patches@gnu.org; Mon, 27 Sep 2021 07:26:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50812] [PATCH v3 2/6] gnu: Add python-pyproj. Resent-From: Felix Gruber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Sep 2021 11:26: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 , Xinglu Chen , Maxime Devos Received: via spool by 50812-submit@debbugs.gnu.org id=B50812.16327419305216 (code B ref 50812); Mon, 27 Sep 2021 11:26:02 +0000 Received: (at 50812) by debbugs.gnu.org; 27 Sep 2021 11:25:30 +0000 Received: from localhost ([127.0.0.1]:39861 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUolF-0001Lx-V8 for submit@debbugs.gnu.org; Mon, 27 Sep 2021 07:25:30 -0400 Received: from mout01.posteo.de ([185.67.36.65]:34939) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUolB-0001LD-4A for 50812@debbugs.gnu.org; Mon, 27 Sep 2021 07:25:25 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 1C198240026 for <50812@debbugs.gnu.org>; Mon, 27 Sep 2021 13:25:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1632741919; bh=ZuSQGAy+tRuQ9vRHhU0uXfHHVUBpQsk8mS+roHriWlU=; h=From:To:Cc:Subject:Date:From; b=nR6A6fT2aoh6E3NoYYEQZUGsK3DI7+SfjQv0OzPXi51Qa/pgl2JW3dimsy9vXDk00 ax+4pGE/hCsz11AvPw+6LmWwWI6mEdW6UPC0JrKx/BaZGBaz1HgNvC/sQS13itEqVs d6bkRdf46OGVNv9HPmCu902QXA9/csWCUNTYC/dwEmdvyaFWLSk9Q0L9x/ieypr6VE xEriWHeA0jEte3eCFThhlWaz2uDVPbX2WGEPpiSHG1j33wxxbV7hPKbOnuQd5hu7r6 VCcjHsZIyqG+6LPGJOzKw1Dms+mVfgQDimGfMUAbeY3D/jaa5fxIojrMPsx5DoBW/R hdvAi0WnqpNiw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HJ0g20j9Rz9rxF; Mon, 27 Sep 2021 13:25:17 +0200 (CEST) From: Felix Gruber Date: Mon, 27 Sep 2021 11:24:53 +0000 Message-Id: <20210927112457.2118-3-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-pyproj): 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 c10b93d83f..cf1f737b7d 100644 --- a/gnu/packages/geo.scm +++ b/gnu/packages/geo.scm @@ -93,6 +93,7 @@ #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) #:use-module (gnu packages python-check) + #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-science) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) @@ -633,6 +634,46 @@ projections.") ;; cmake/* license:boost1.0)))) +(define-public python-pyproj + (package + (name "python-pyproj") + (version "3.2.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pyproj" version)) + (sha256 + (base32 + "0xrqpy708qlyd7nqjra0dl7nvkqzaj9w0v7wq4j5pxazha9n14sa")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'set-proj-path + (lambda* (#:key inputs #:allow-other-keys) + (let ((proj (assoc-ref inputs "proj"))) + (setenv "PROJ_DIR" proj) + (substitute* "pyproj/datadir.py" + (("(internal_datadir = ).*$" all var) + (string-append var "Path(\"" proj "/share/proj\")\n"))))))))) + (inputs + `(("proj" ,proj.7))) + (propagated-inputs + `(("python-certifi" ,python-certifi))) + (native-inputs + `(("python-cython" ,python-cython) + ("python-numpy" ,python-numpy) + ("python-pandas" ,python-pandas) + ("python-pytest" ,python-pytest) + ("python-xarray" ,python-xarray))) + (home-page "https://github.com/pyproj4/pyproj") + (synopsis + "Python interface to PROJ") + (description + "This package provides a Python interface to PROJ, a cartographic +projections and coordinate transformations library.") + (license license:expat))) + (define-public mapnik (package (name "mapnik")