From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id cNKPHq4dS2TsgwAASxT56A (envelope-from ) for ; Fri, 28 Apr 2023 03:13:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QGiiHq4dS2RStgAAauVa8A (envelope-from ) for ; Fri, 28 Apr 2023 03:13:18 +0200 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 2A59984F4 for ; Fri, 28 Apr 2023 03:13:18 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1psBHR-0005oB-EP; Thu, 27 Apr 2023 19:44:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1psBHQ-0005mq-1A for guix-patches@gnu.org; Thu, 27 Apr 2023 19:44:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1psBHP-00029V-PK for guix-patches@gnu.org; Thu, 27 Apr 2023 19:44:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1psBHP-0003Od-M2 for guix-patches@gnu.org; Thu, 27 Apr 2023 19:44:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63136] [PATCH 04/14] gnu: Add python-h3. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 27 Apr 2023 23:44:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63136 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63136@debbugs.gnu.org Cc: Sharlatan Hellseher Received: via spool by 63136-submit@debbugs.gnu.org id=B63136.168263901212916 (code B ref 63136); Thu, 27 Apr 2023 23:44:03 +0000 Received: (at 63136) by debbugs.gnu.org; 27 Apr 2023 23:43:32 +0000 Received: from localhost ([127.0.0.1]:60034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psBGt-0003M8-Gz for submit@debbugs.gnu.org; Thu, 27 Apr 2023 19:43:31 -0400 Received: from mail-wr1-f41.google.com ([209.85.221.41]:51423) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psBGm-0003KE-2Q for 63136@debbugs.gnu.org; Thu, 27 Apr 2023 19:43:25 -0400 Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-2f7db354092so5746273f8f.2 for <63136@debbugs.gnu.org>; Thu, 27 Apr 2023 16:43:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682638998; x=1685230998; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ustfio3mO3I+5nsZjqO7biOdNvtvZ3xlq4jvs4ruU6o=; b=EFD0iyAPVdw2/cOuLaaOSEowfa7Kfonq3VRW+88mc0N/B0HvFjqH4RY8TPslTTWXdr fZTYwEL80EfDDj+1vxCWjBaM5l4fXbdmdWo/tP4+BBdOIdsI9GD3DpovL8WBb0p7iSqQ F+FiY6uD++LZcc/OybnMCBk28lj4ZWQvLeN4vid24oG/YJVbb8XhelDhi2Ks6vWdunpn hkLSIn4U/LjelDYwsA/+i8Zpf0RS4ln8EhaBNY8Buf7KEb1+TOxuxYXQCQF1kOhApWLQ Y9D+5pfXNLYbZJrHGaqniDn7oo+9VojjJ26gJRaYrCElMwSHG2yk2gSzPHNBvTlLLXKl 7LVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682638998; x=1685230998; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ustfio3mO3I+5nsZjqO7biOdNvtvZ3xlq4jvs4ruU6o=; b=cLOytH3deBpyoUGTCXRl+O3xM03lAdSFIxU+83YVWP3rwBlG8+LdYzBsDMeJqY1LjV 6Fz7XIRXoz1ei8yHP1iO8DPNLvQQYTP85HHgsqDY0O3okLDvzrEuIwb52qM61s/7mHi0 y8ei86gU6/GLZ2ApXqniU3ezNHAf6UDtX7gM9A9WBKV0k0mgt38Q0EpC5Fx3vsussHPU OgtldUFM8xCVfBkmJFxrI1foptnKbf6uLsBXtOcbMB9BlzxPaLYzFFify7hyg/14IsFW G1Q21fpaZBcc0AYsnK/nhdZ0eAwq3+D0OSPdQinl3u4VF49E76FxKpA/CTdCKVvb+jc1 E+LQ== X-Gm-Message-State: AC+VfDx/9gmFef+6EXLfDqXLfmLdkasdf0EOgW4yx/4YVVV3rbKN1fMj vaY0dwNfAdJcJzqgnbjU/t9C9IvU4Dg= X-Google-Smtp-Source: ACHHUZ4ZPSGrnw63lSUZSj0IvLJ/1Twy1s+1W8XSZdfJ0cm1yxWbqlKoY2xhTodV4dF3Xzd50VH2Mw== X-Received: by 2002:adf:e746:0:b0:2f4:6a97:c27b with SMTP id c6-20020adfe746000000b002f46a97c27bmr2171478wrn.5.1682638998402; Thu, 27 Apr 2023 16:43:18 -0700 (PDT) Received: from guxtil.incerto.xyz (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id m6-20020a5d6246000000b002feea065cc9sm19555491wrv.111.2023.04.27.16.43.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Apr 2023 16:43:18 -0700 (PDT) From: Sharlatan Hellseher Date: Fri, 28 Apr 2023 00:43:03 +0100 Message-Id: <20230427234313.19013-4-sharlatanus@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230427234313.19013-1-sharlatanus@gmail.com> References: <20230427234313.19013-1-sharlatanus@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682644398; a=rsa-sha256; cv=none; b=i2+9u1nMieEEUstoV1kTd9ElfgRGvKVwvNpeplNzeCeogRFV5k73IWLrvr1lXVSa5eSt0c DhKJEIbMk/skmImjm8fPiqm6DiyG+SlsxiYH8JQEY1Riu/Di1Alo8POvOONAkc8kH3L94b nVsuGaVgfg8E0DoJoEk8Lj3/MUPohDrWd9vcdRhsnc9tx/jEBU70ryJaLYHZZM3EFF2xmF p/pFxjqnUr/OVme2dE9AhjN6Towpf8blrrdI071ucS0RUefAmRCdh8QgC+oF31stQLkHXN AfjC7lG9O6JWFf3yM4rvM5fyKT/wAYu7b3PJJAtQ4vrZSrqqH1biHgoxvdts5w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=EFD0iyAP; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682644398; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=ustfio3mO3I+5nsZjqO7biOdNvtvZ3xlq4jvs4ruU6o=; b=Qf4USEHsawKKc9buWQ0Kc0B8HBr/3WIgxTfZblVHOkLBcUdhYXycaq0wOeU9k0J6WeKbeR 7dIWdQdcwPVryNQSo+X0dz6KnR7nPq+x+eDO4podPyv2HE8ApxnOfn5q6hBCZkRT/uWgeh yH2PDPavd/rDsehwAd3g46FQ/IfFAUDlBSpEFg35iMsNsvlrmimctp5wFWCGA9gaM0gyYg 7lPaJ7827wBvHLCQpf8u8Lr3AP44WxGnMBrvc9Az2VIH5srPXNKvB5uO+viwu9YhujXawZ a6j8bAJlcB58o5GKjHtljHXcOnGnhX88Q31gf/W5QBPt4IWRwlaCjT/aoB8uAQ== X-Migadu-Spam: Yes X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=EFD0iyAP; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Spam: Yes X-Migadu-Spam-Score: 8.80 X-Spam-Score: 8.80 X-Migadu-Queue-Id: 2A59984F4 X-TUID: e2mUCwZzFzyP * gnu/packages/geo.scm (python-h3): New variable. --- gnu/packages/geo.scm | 54 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm index b49b74a949..a5a2567d83 100644 --- a/gnu/packages/geo.scm +++ b/gnu/packages/geo.scm @@ -251,6 +251,60 @@ (define-public h3 subdivisions.") (license license:asl2.0))) +(define-public python-h3 + (package + (name "python-h3") + (version "4.0.0b2") + (source + (origin + (method git-fetch) ; no tests data in PyPi package + (uri (git-reference + (url "https://github.com/uber/h3-py") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1k1n256hhlh05gjcj64pqh08zlaz6962jkb6nk1aazsgg8p41zs0")) + (modules '((guix build utils))) + ;; Remove bundeled H3 lib. + (snippet #~(begin (delete-file-recursively "src/h3lib"))))) + (build-system pyproject-build-system) + (arguments + (list + ;; FIXME: Check why these tests are failing. + ;; test_versions - assert (4, 1) == (4, 0) + ;; test_resolution - h3._cy.error_system.H3Failed + #:test-flags #~(list "-k" (string-append + "not test_versions" + " and not test_resolution")) + #:phases + #~(modify-phases %standard-phases + ;; Use packaged in Guix h3 source. + (add-after 'unpack 'patch-cmakelists + (lambda _ + (substitute* "CMakeLists.txt" + (("add_subdirectory\\(src/h3lib\\)") + (string-append + "include_directories(" #$(this-package-input "h3") + "/include/h3)\n" + "link_directories(" #$(this-package-input "h3") + "/lib)\n")) + ((".*CMAKE_CURRENT_BINARY_DIR.*") + (string-append #$(this-package-input "h3") + "/include/h3/h3api.h\n")))))))) + (native-inputs + (list cmake + python-cython + python-numpy + python-pytest + python-scikit-build + python-setuptools-scm)) + (inputs (list h3)) + (home-page "https://uber.github.io/h3-py") + (synopsis "Python bindings for H3") + (description "This package provides a Python bindings for H3, a +hierarchical hexagonal geospatial indexing system") + (license license:asl2.0))) + (define-public memphis (package (name "memphis") -- 2.39.2