From patchwork Thu May 19 19:46:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Gruber X-Patchwork-Id: 39530 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 331DC27BBEA; Thu, 19 May 2022 20:47:14 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id EDEA027BBE9 for ; Thu, 19 May 2022 20:47:13 +0100 (BST) Received: from localhost ([::1]:47690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrm77-0005aq-2o for patchwork@mira.cbaines.net; Thu, 19 May 2022 15:47:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53478) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrm6w-0005ZU-6b for guix-patches@gnu.org; Thu, 19 May 2022 15:47:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42750) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nrm6v-0002QC-UI for guix-patches@gnu.org; Thu, 19 May 2022 15:47:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nrm6v-000387-S0 for guix-patches@gnu.org; Thu, 19 May 2022 15:47:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55528] [PATCH 1/2] gnu: python-rtree: Update to 1.0.0. Resent-From: Felix Gruber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 May 2022 19:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55528 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55528@debbugs.gnu.org Cc: Felix Gruber Received: via spool by 55528-submit@debbugs.gnu.org id=B55528.165298957911958 (code B ref 55528); Thu, 19 May 2022 19:47:01 +0000 Received: (at 55528) by debbugs.gnu.org; 19 May 2022 19:46:19 +0000 Received: from localhost ([127.0.0.1]:36642 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrm6F-00036n-IO for submit@debbugs.gnu.org; Thu, 19 May 2022 15:46:19 -0400 Received: from mout02.posteo.de ([185.67.36.66]:42293) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrm6C-00036Z-Tr for 55528@debbugs.gnu.org; Thu, 19 May 2022 15:46:18 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 4B52A240109 for <55528@debbugs.gnu.org>; Thu, 19 May 2022 21:46:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1652989571; bh=oBSF8vvvc5n2gX0FY5uoLmj9t6p4VZM15av/Hs5Lcvk=; h=From:To:Cc:Subject:Date:From; b=gFAkZsu1Ca+Ci44Zc9aqxCuWU8OPpw0ZC2igClXT4aHJamKTKK9o9twafSbt6ntW8 Fy/OoE2PC26bGoBo3Lo+zWcJ31c1eeJaJ8TZZflqcWoxm5k/swc6mexlF+ndd24aH5 f+SLgNPWia4BNWoM0pfPgpON+iqNieLAVGbZp5xtl3MPEpS2fOrrAVGDX6Per7y63P 3VWsdoVQOt5BIKfLS8e4g1vjww5SfayUeDCZIm04/W5jtY3F+BSEZIiYgo8wnHi38d xZvbA94zavjiGeOOn8kdibM0JrCLfPV6i+b5aAtunV8ICIyMgSXULxWEc5na13pUo9 ytQ1OP+cLdWtA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4L40hy4Np0z9rxG; Thu, 19 May 2022 21:46:10 +0200 (CEST) From: Felix Gruber Date: Thu, 19 May 2022 19:46:05 +0000 Message-Id: <20220519194606.4548-1-felgru@posteo.net> In-Reply-To: <20220519194407.4435-1-felgru@posteo.net> References: <20220519194407.4435-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-rtree): Update to 1.0.0. [arguments]: Fix 'find-libspatialindex phase. --- gnu/packages/geo.scm | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm index 0c9240eea7..37a3e6d179 100644 --- a/gnu/packages/geo.scm +++ b/gnu/packages/geo.scm @@ -1486,27 +1486,28 @@ persisted. (define-public python-rtree (package (name "python-rtree") - (version "0.9.7") + (version "1.0.0") (source (origin (method url-fetch) (uri (pypi-uri "Rtree" version)) (sha256 - (base32 "0gna530vy6rh76035cqh7i2lx199cvxjrzjczg9rm6k96k5751xy")))) + (base32 "10lnhf67c9pb0yisxdqmb52dy6lj1za1h9d4p69v0ihk2a138j6h")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases (add-after 'unpack 'find-libspatialindex (lambda* (#:key inputs #:allow-other-keys) - (setenv "SPATIALINDEX_C_LIBRARY" - (string-append (assoc-ref inputs "libspatialindex") - "/lib/libspatialindex.so")))) + (let ((libspatialindex (assoc-ref inputs "libspatialindex"))) + (substitute* "rtree/finder.py" + (("find_library\\(\"spatialindex_c\"\\)") + (string-append "\"" libspatialindex + "/lib/libspatialindex_c.so\"")))))) (replace 'check - (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (lambda* (#:key outputs tests? #:allow-other-keys) (when tests? - (add-installed-pythonpath inputs outputs) - (invoke "python" "-m" "pytest"))))))) + (invoke "pytest"))))))) (native-inputs (list python-numpy python-pytest python-wheel)) (inputs