From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EDTQGKRUf2NrYQAAbAwnHQ (envelope-from ) for ; Thu, 24 Nov 2022 12:25:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oK/2GKRUf2NzEQAA9RJhRA (envelope-from ) for ; Thu, 24 Nov 2022 12:25:24 +0100 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 15BCA117BB for ; Thu, 24 Nov 2022 12:25:23 +0100 (CET) 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 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669289124; 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=Cht2Bplkcfg/9a184ByNm5PffvjPbRD6cBwvpdjUToo=; b=WcceWU0u4BzWqG8FXKV/u0ze1N0fZ+3CdfLDkpoK5CymisZL1yIMdgopsVLr0P0/kqEjek E2IRWZXXpXUpqGmnwk/EikI7BNa+NxRprObptEYzLKxsXt0W6vWl2lqMJrP9mBQc8IGXVn C04FR5eSpCB9p9EvbCfCAb/tpvGNU1VKwLbPS5BOqrcn4iZPwnDr5JzTCl0/ik5TQDjZ50 CayzNiBSsoHDchyQN8FUL7u4rjCriUGFiTmY9tN+kdrDtNuHOmEh+p2ewkgvgYZmzxcYmc d9TNzuHsLlYfyHDVF9ZpO0TtlONhGpWGfPCMbdKHPuNJ3CEKgO04bpnODthpSw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669289124; a=rsa-sha256; cv=none; b=oqluq9lPxXAqk5hJMwbsQ7b+P6Ot0MOS6GG8OGqKXoTh8eIsYbZSBNocaweLWU0s3WHNuV uAWIQfyImDQczirC5OvY1bcpst2OPv5DoVzNWPM4rcMTLphgBHK/cI/sWjHaUcsSb6ZBxA QEogZFJZIldlDrgeDATt48JaTYl3a7I7lPFQm4SM//bDBC4BxGL0g7wGqNs8R6vpjSUM2j SLdnhZlPMMeG3NHsmJ3vKi30hBkRfKuc6x/YtVD7BFR2rnbzj7OkYvcYfwCygMxY7zeQDs 3jUM+1D2cf88eMYn9+HoUcLAS1luGqxSQ5Xne8oOe88LlWkaEBIU77cfKHYP6A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=owqmhAL2; 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-Migadu-Spam-Score: 7.51 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=owqmhAL2; 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-Migadu-Queue-Id: 15BCA117BB X-Spam-Score: 7.51 X-Migadu-Scanner: scn1.migadu.com X-TUID: VGzDaYltBIJ1 * 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") -- 2.38.0