From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QCpIDE5n2mFeHAAAgWs5BA (envelope-from ) for ; Sun, 09 Jan 2022 05:40:46 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aKHnBE5n2mGKuwAAG6o9tA (envelope-from ) for ; Sun, 09 Jan 2022 05:40:46 +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 CEB5F33005 for ; Sun, 9 Jan 2022 05:40:45 +0100 (CET) Received: from localhost ([::1]:44036 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n6Q0a-0001c6-Tz for larch@yhetil.org; Sat, 08 Jan 2022 23:40:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6Q03-0001bu-8s for guix-patches@gnu.org; Sat, 08 Jan 2022 23:40:11 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56183) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n6Pzv-0004Sx-QB for guix-patches@gnu.org; Sat, 08 Jan 2022 23:40:09 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n6Pzv-00083X-Lb for guix-patches@gnu.org; Sat, 08 Jan 2022 23:40:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53135] [PATCH 5/5] gnu: Add python-regions. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 09 Jan 2022 04:40:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53135 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53135@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 53135-submit@debbugs.gnu.org id=B53135.164170314430879 (code B ref 53135); Sun, 09 Jan 2022 04:40:03 +0000 Received: (at 53135) by debbugs.gnu.org; 9 Jan 2022 04:39:04 +0000 Received: from localhost ([127.0.0.1]:49083 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n6Pyx-00081y-Vx for submit@debbugs.gnu.org; Sat, 08 Jan 2022 23:39:04 -0500 Received: from mout01.posteo.de ([185.67.36.65]:48145) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n6Pyv-00080s-Lp for 53135@debbugs.gnu.org; Sat, 08 Jan 2022 23:39:02 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 13DA7240026 for <53135@debbugs.gnu.org>; Sun, 9 Jan 2022 05:38:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1641703136; bh=mzSjw7sKh9T/SSM72fIbzuFwkI621X9uF8HSD+uuHug=; h=From:To:Cc:Subject:Date:From; b=NkE460fmzg8XwsV8UyxSuxA15wBvytkoE7iELx3dGMX7uIa7rt/VjekzkDzDQLyEd 5ZfRk/Ns33bMLColuwI65AOfUv+DnS7SG8tLeeG8RDPpRdTGXL63Y3bVW2rfMoiKFf qadW/CTC20VHzIgU5GWwuO5MkWavCB5J2LmNdpIi3J4wk9h56m1eITpwXPUPWGqWSg Ed1rExFChjEMjGWDKWN4/VJLmQ+BwDeKj4oBOD/l61KaLxp9rpJFUPYljtw96LmtuB RDM0FIjCK+ysucp49PO5VTrBbNLJuGz0vP+82/cnMo72W3e8t1b63yut9VBfQmii/U s9dDqwdRlxBrQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JWkk71YMmz6tmB; Sun, 9 Jan 2022 05:38:54 +0100 (CET) From: Vinicius Monego Date: Sun, 9 Jan 2022 04:38:41 +0000 Message-Id: <20220109043841.28296-3-monego@posteo.net> In-Reply-To: <20220109043841.28296-1-monego@posteo.net> References: <20220109043841.28296-1-monego@posteo.net> 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" 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=1641703245; 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=JHPptgBIzxAXVn+PcOgyjq3yVcZtJjGIulkWIwqLy5E=; b=hw/6fe039lJf8oweDLSL6BWHLVs8+2jwwm6czSQfcvURJUgvKovvf8ihkgQmj7TCRg74kN TKb5Tk9ZjPNDk2brJ4AHfFbQKH804M9dCOoapl24HWqBHL0XuepqTF9dSWByukdxkjKSa+ L8+ntEvrS3la6+g6WF7mBJqeuyuhM1p9aX8NIu3O5VTfVOKrR2slGZ1e4amSosRezI6B5M oB5GJjog25AaG3qyHU8dLeEiI9ruycE3jaLjvpDtsJ7kLdarnBMIXJIeiDgqcR66BNHboC DGPxVvQ9Pl0CnSydKvUaj8C6EZC4sKDNp79QB2cDlksZf89JRK6/qI1C71l8DQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641703245; a=rsa-sha256; cv=none; b=r3HuqKN/JcIYInOQsAOM42FSatH5Bh4MA9ZNV30Jk66nTd3RRebXpPlHHWrwILFKY2JdFj hWLC1QY2CsBvhAScUGaOUPfQyMqxNa5vxquerLDtP44zjmnaL1NfjljmtAAzwQiR7pU5wU VuE36UlqgfRkGkk2o50BaYJHU38324wSLafxdJuvo6qsNkgn+wO0b1TMuzdLvw6U3P7wNB l/DqyC/IyjF6CTiKusCDRLjJGXCCQ1a8irrCiodnLhqtMErf5BVyn7IERG4oJ/k+7wXG54 DOFetDxU7xhDuSw1ySc9V0ASq5lUqSNMhlQmtJth32GhrQmfwcZfrv4RBJX9Vw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=NkE460fm; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (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: -0.71 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=NkE460fm; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (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: CEB5F33005 X-Spam-Score: -0.71 X-Migadu-Scanner: scn1.migadu.com X-TUID: ZIY9JDspvhoI * gnu/packages/astronomy.scm (python-regions): New variable. --- gnu/packages/astronomy.scm | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 20961e1436..e968fd2480 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -857,6 +857,45 @@ of astronomical sources.") Virtual observatory (VO) using Python.") (license license:bsd-3))) +(define-public python-regions + (package + (name "python-regions") + (version "0.5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "regions" version)) + (sha256 + (base32 "1bjrcjchbw3xw1a26d5g198lh7vxpp9m5sal58r7f8mmr1d8g2dc")))) + (build-system python-build-system) + (arguments + `(#:test-target "pytest" + #:phases + (modify-phases %standard-phases + ;; This doctest requires online data. + (add-after 'unpack 'delete-doctest + (lambda _ (delete-file "docs/masks.rst"))) + ;; This file is opened in both install and check phases. + (add-before 'install 'writable-compiler + (lambda _ (make-file-writable "regions/_compiler.c"))) + (add-before 'check 'writable-compiler + (lambda _ (make-file-writable "regions/_compiler.c"))) + (add-before 'check 'writable-home + (lambda _ (setenv "HOME" (getcwd))))))) + (propagated-inputs + (list python-astropy python-numpy)) + (native-inputs + (list python-cython + python-extension-helpers + python-pytest-arraydiff + python-pytest-astropy + python-pytest-runner + python-setuptools-scm)) + (home-page "https://github.com/astropy/regions") + (synopsis "Package for region handling") + (description "Regions is an Astropy package for region handling.") + (license license:bsd-3))) + (define-public python-astral (package (name "python-astral") -- 2.30.2