From patchwork Thu Nov 24 11:24:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 44794 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 8E6AA27BBEC; Thu, 24 Nov 2022 11:25:25 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,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 090F727BBE9 for ; Thu, 24 Nov 2022 11:25:24 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyAM0-0004sm-P0; Thu, 24 Nov 2022 06:25:17 -0500 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 1oyALv-0004qA-2Q for guix-patches@gnu.org; Thu, 24 Nov 2022 06:25:12 -0500 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 1oyALo-0005Zs-ED for guix-patches@gnu.org; Thu, 24 Nov 2022 06:25:08 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oyALo-0007ri-9j for guix-patches@gnu.org; Thu, 24 Nov 2022 06:25:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59542] [PATCH 4/5] gnu: Add python-reproject. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 24 Nov 2022 11:25:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59542 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59542@debbugs.gnu.org Cc: Sharlatan Hellseher Received: via spool by 59542-submit@debbugs.gnu.org id=B59542.166928909730140 (code B ref 59542); Thu, 24 Nov 2022 11:25:04 +0000 Received: (at 59542) by debbugs.gnu.org; 24 Nov 2022 11:24:57 +0000 Received: from localhost ([127.0.0.1]:57537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyALh-0007py-E4 for submit@debbugs.gnu.org; Thu, 24 Nov 2022 06:24:57 -0500 Received: from mail-wr1-f52.google.com ([209.85.221.52]:35750) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyALc-0007p6-Dy for 59542@debbugs.gnu.org; Thu, 24 Nov 2022 06:24:53 -0500 Received: by mail-wr1-f52.google.com with SMTP id b12so2053322wrn.2 for <59542@debbugs.gnu.org>; Thu, 24 Nov 2022 03:24:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=Cht2Bplkcfg/9a184ByNm5PffvjPbRD6cBwvpdjUToo=; b=owqmhAL24JSrN2c+oQ9vkibOkQPb0He1T2b/y3t1w0eMCmoPRIgtF1bgByX4KxqxgW MNHyPDe9cAPGInS5jUdQeaxRs1TcBLkxJHL44jELSmDWSNDHpFVQw307CBNrg6fHtZ0D yLfTOed1kJ3KtngDTyXp3E4IXW+veJLLys0HwoT+hGcn7LqPi+YVdR/O1fm7izC5708H 1ePHezLlAFhRE656+FVKsnYe8JVMbErX61kb901Jt1OV/wM5HpP67qAuuHo4GQIFtMX7 Tawq5UoTdCxLK1UR5wtXEkv/D5VrSl1HYehGJmgVwJ4gI851r+9yXB1enpAFKQBzM6pJ NxnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=Cht2Bplkcfg/9a184ByNm5PffvjPbRD6cBwvpdjUToo=; b=qnE5U7mALxKD9MmFfBLMOLGJ4444jZYvXQvVaXVUdAVYjWGdNsBnLT5aMYsyZAnsDa 1cGBwzhCpoIOPseUkL2YlVycAJMHjlZUDA8lEdUkW9SykrqqfDMsf+sIfLuMhXlzSUnr g7MNyR2YLHqY7LOw2B5EX5iQY1Y6GY1AEvC/0oVRHTAhTZk/VjqONArwoL7j8ZAJXspe sU8UPywVL3szYj5IYifGYiGUxUOwpSMDHrMuitd6B81BPgTrF7loNzizxeS38IpRzgl6 TrfxIVdVq+yXL3PQ6+N2R6/xBi/6fxAxPw3IjlMGpaTHi61pns+nZGEjCvOVrshTnWO4 AjOg== X-Gm-Message-State: ANoB5pkmeAaZIGtXMiGX9I+5OKr+UJe8D4SYhkHc2MncVOdc0xE9ipME YbU7G+RE2ormDxydaObIdvLY3NacglI= X-Google-Smtp-Source: AA0mqf4OgaxSSf5rWRg4jOHnL/urYoOVrHqAaT4Mrri/mgNcXGMxCdRE5mWQdk+2drvfqYnY7uCwGQ== X-Received: by 2002:adf:f5d2:0:b0:241:6e0b:e595 with SMTP id k18-20020adff5d2000000b002416e0be595mr12049629wrp.179.1669289086881; Thu, 24 Nov 2022 03:24:46 -0800 (PST) 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 h20-20020a05600c351400b003c6cd82596esm6022874wmq.43.2022.11.24.03.24.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Nov 2022 03:24:46 -0800 (PST) From: Sharlatan Hellseher Date: Thu, 24 Nov 2022 11:24:40 +0000 Message-Id: <20221124112441.22965-4-sharlatanus@gmail.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221124112441.22965-1-sharlatanus@gmail.com> References: <20221124112441.22965-1-sharlatanus@gmail.com> 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/astronomy.scm (python-reproject): New variable. --- gnu/packages/astronomy.scm | 56 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index eb3b1f01b9..26d036a0be 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -1355,6 +1355,62 @@ (define-public python-regions (description "Regions is an Astropy package for region handling.") (license license:bsd-3))) +(define-public python-reproject + (package + (name "python-reproject") + (version "0.9.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "reproject" version)) + (sha256 + (base32 "1msysqbhkfi3bmw29wipk250a008bnng7din56md9ipbwiar8x55")))) + (build-system pyproject-build-system) + (arguments + (list + ;; FIXME: Failing tests + ;; + ;; reproject/adaptive/core.py:7: in + ;; from .deforest import map_coordinates + ;; E ModuleNotFoundError: No module named 'reproject.adaptive.deforest' + ;; + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-before 'install 'writable-compiler + (lambda _ + (make-file-writable "reproject/_compiler.c"))) + (add-before 'check 'writable-compiler + (lambda _ + (make-file-writable "reproject/_compiler.c"))) + (add-before 'check 'writable-home + (lambda _ + (setenv "HOME" (getcwd))))))) + (propagated-inputs + (list python-astropy + python-astropy-healpix + python-numpy + python-pytest + python-scipy)) + (native-inputs + (list python-asdf + python-cython + python-extension-helpers + python-gwcs + python-pytest-astropy + python-pyvo + python-semantic-version + python-setuptools-scm + python-shapely)) + (home-page "https://reproject.readthedocs.io") + (synopsis "Astronomical image reprojection in Python") + (description + "This package provides a functionality to reproject astronomical images using +various techniques via a uniform interface, where reprojection is the +re-gridding of images from one world coordinate system to another e.g. +changing the pixel resolution, orientation, coordinate system.") + (license license:bsd-3))) + (define-public python-astral (package (name "python-astral")