From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 8NxDOgrTJWWmgwAAauVa8A:P1 (envelope-from ) for ; Wed, 11 Oct 2023 00:41:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8NxDOgrTJWWmgwAAauVa8A (envelope-from ) for ; Wed, 11 Oct 2023 00:41:15 +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 1EC913D410 for ; Wed, 11 Oct 2023 00:41:14 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=azsUkAp9; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1696977674; 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=G7RsAyYvZaLFX14p9sYmujuDR7tBIQ8BaQUQvolAj58=; b=ZY6MX4W2MH5Ivbhrq3J5tWd574yzn0dghKPIGOqScAuObeGbPtFmVEA37YMM4iwQ11KINS sLqAbAYLboiWmOVsLUbhHfr1ytHoKRn5VeEu2x+R4BUPGapS1Om3BuGxxphJZHqL7PinHH rKC41DkHVvFSQF5JdUXDprbn92/vxQ/W0DLvQR+lHrBu3CIbwJ7uF79gqDItLbtj7MjITj NlcAKf1Ek+fFGXx7NRtT/lhVdI4Wz2hQdC43t7bbt7UnVrFGZyklet5geOTqhSdAQsmV8m haTh9LcBc8nD2XGxo57CZ/gs5px+iw1aAC9DwSEb8PUKmkbHdt9fM1JfI8XxPg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=azsUkAp9; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1696977674; a=rsa-sha256; cv=none; b=sKxgI5Rprmti61V+xrbs7YzMTM7guAzWCrQB/2loDNxkb+scvJ3heKPR3lF8WTfqFcU2Xp n2GP86uWmkPweQ4muTQPk+k8A7QoXdDkE3eYnVZvYmLxGU3jmSBH2GfL5WnSoZAZ3x+c82 w4cBylxwai2Ih7h7yYR3h8A96c7/7lutNLRHiJTMPfsc5XYIy03WcZVYKCAAQ9oS1oBemi r96Zha5OluPU2/m9fztGvUWPS1VExSim+EXNCqzFN1seksvCaS1o5UzvsBbH6RSiBsq2ir 85ZpfDi7Pu6b1hlrNz8ix6wadfCAtSF9jPYCnuNTtdNId5M5eWVjda9Q+ZKy+A== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qqLPA-0003bI-UG; Tue, 10 Oct 2023 18:40:44 -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 1qqLP8-0003Zg-3i for guix-patches@gnu.org; Tue, 10 Oct 2023 18:40:42 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qqLP7-0007mu-Rx for guix-patches@gnu.org; Tue, 10 Oct 2023 18:40:41 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qqLPS-0006pJ-Ks; Tue, 10 Oct 2023 18:41:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66454] [PATCH 3/5] gnu: Add python-pyregion. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, efraim@flashner.co.il, bavier@posteo.net, guix-patches@gnu.org Resent-Date: Tue, 10 Oct 2023 22:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66454 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66454@debbugs.gnu.org Cc: Sharlatan Hellseher , Andreas Enge , Efraim Flashner , Eric Bavier X-Debbugs-Original-Xcc: Andreas Enge , Efraim Flashner , Eric Bavier Received: via spool by 66454-submit@debbugs.gnu.org id=B66454.169697761226141 (code B ref 66454); Tue, 10 Oct 2023 22:41:02 +0000 Received: (at 66454) by debbugs.gnu.org; 10 Oct 2023 22:40:12 +0000 Received: from localhost ([127.0.0.1]:37063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqLOe-0006nS-2w for submit@debbugs.gnu.org; Tue, 10 Oct 2023 18:40:12 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:42494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqLOb-0006mi-3i for 66454@debbugs.gnu.org; Tue, 10 Oct 2023 18:40:10 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-405524e6769so2107685e9.1 for <66454@debbugs.gnu.org>; Tue, 10 Oct 2023 15:39:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696977582; x=1697582382; darn=debbugs.gnu.org; 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=G7RsAyYvZaLFX14p9sYmujuDR7tBIQ8BaQUQvolAj58=; b=azsUkAp9NMgZDfIhoc5r7Kdkmb2h94QeZ/WWBQW9jhKRSNCUmJbtLOtclyTepUz15u gtYzZq6lRy/cdVZcv5z7fNGjdr/jAyXPg7sfKY6ql/7Ig8Aifk4yH/78NJnxccaI49zX GydmvcAkDYXIUYc7RwT5XQZAqOl5iafEdY1rT5+I+HsrIkiVx3He+edpNX/pSX6gHo4t eYMa4wFifgls0dEITDJB2JsUn09cJqXexjpyDodceSoxjd+Guu9Fm3qRgTj1fZeH0/fS Feo6+ui1lryiL7NrCi/lSAeBBUQQyJ9kmc0W+vjlRq6mLfFtdGijAwDSrLM2P7NrmHA5 01Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696977582; x=1697582382; 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=G7RsAyYvZaLFX14p9sYmujuDR7tBIQ8BaQUQvolAj58=; b=WOkVP9NFLKpmPPxt3Oe/WLkREvRrp8XIgMO2FxjCZe8gkOo0KYku05UDsqDGwTB+bh LOkrwqoYwmuXoo93sa9tmGb1Jomsciq6sQXGY2QfbrTyyHPuSzDaNiRqINsoHSM8j4lX hrlsWa0cIowIIFJ9USBnrbUUySvwLseH/6uJprRWUpdUfJoFinflpSwzhPY0szzRJNsd YZraPTim191uMPVh/MMNfg3zDqIiJBgvmkmYAIbMUuBXtBSUCH9oguR1I5MnjjlMOZFu 36XNNlud8usmDy+u6mt1DEfyd9U1AZofawwQ408j0ybmJBlhGF5Y+e10wBW/9saELa+l hYyg== X-Gm-Message-State: AOJu0YyWFcYhBiGoqwq3sJLxYTfvxibsgUmI096YUW0bsVkdQfAO/dnL yY+pLmjADVnY4cVY6sVtBPS/LDtIustUUw== X-Google-Smtp-Source: AGHT+IFkz7XjKrp8bu31V0XO79stLTDnl9D32o3gGf47xA4eYmevdcn0HAGo3VA2TazCWbtU8+3meQ== X-Received: by 2002:a05:600c:205a:b0:405:784a:d53e with SMTP id p26-20020a05600c205a00b00405784ad53emr12163982wmg.20.1696977581671; Tue, 10 Oct 2023 15:39:41 -0700 (PDT) Received: from localhost.localdomain (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id az41-20020a05600c602900b004068495910csm17447539wmb.23.2023.10.10.15.39.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 15:39:41 -0700 (PDT) From: Sharlatan Hellseher Date: Wed, 11 Oct 2023 02:39:33 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 8.32 X-Spam: Yes X-Migadu-Queue-Id: 1EC913D410 X-Migadu-Spam: Yes X-Spam-Score: 8.32 X-Migadu-Scanner: mx2.migadu.com X-TUID: OhLD5bR0oyqA * gnu/packages/astronomy.scm (python-pyregion): New variable. --- gnu/packages/astronomy.scm | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 2f059236b9..684324c589 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -3449,6 +3449,46 @@ (define-public python-pynbody N-Chilada and RAMSES AMR outputs.") (license license:gpl3+))) +(define-public python-pyregion + (package + (name "python-pyregion") + (version "2.2.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pyregion" version)) + (sha256 + (base32 "0l7qb7r8fnv46mdih4m5b8jaxixgpw6m7v37dpikjkblgh0vigaw")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'build-extensions + (lambda _ + ;; Cython extensions have to be built before running the tests. + (invoke "python" "setup.py" "build_ext" "--inplace")))))) + (propagated-inputs + (list python-astropy python-numpy python-pyparsing)) + (native-inputs + (list python-cython + python-pytest + python-pytest-astropy-header + python-setuptools-scm)) + (home-page "https://github.com/astropy/pyregion") + (synopsis "Python parser for ds9 region files") + (description + "@code{pyregion} is a python module to parse ds9 region files. It also +supports ciao region files. +Features: +@itemize +@item ds9 and ciao region files. +@item (physical, WCS) coordinate conversion to the image coordinate. +@item convert regions to matplotlib patches. +@item convert regions to spatial filter (i.e., generate mask images) +@end itemize") + (license license:expat))) + (define-public python-pysynphot (package (name "python-pysynphot") -- 2.41.0