From patchwork Tue Feb 20 23:43:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 60850 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 AB38827BBE9; Tue, 20 Feb 2024 23:47: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=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 5604727BBE2 for ; Tue, 20 Feb 2024 23:47:22 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rcZpK-0008Oo-AB; Tue, 20 Feb 2024 18:47:07 -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 1rcZp3-000867-SK for guix-patches@gnu.org; Tue, 20 Feb 2024 18:46:52 -0500 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 1rcZp3-0000Ro-K3 for guix-patches@gnu.org; Tue, 20 Feb 2024 18:46:49 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rcZpP-0000hP-HH; Tue, 20 Feb 2024 18:47:11 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69295] [PATCH 43/46] gnu: Add python-ginga. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, bavier@posteo.net, sharlatanus@gmail.com, guix-patches@gnu.org Resent-Date: Tue, 20 Feb 2024 23:47:11 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69295 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69295@debbugs.gnu.org Cc: Sharlatan Hellseher , Andreas Enge , Eric Bavier , Sharlatan Hellseher X-Debbugs-Original-Xcc: Andreas Enge , Eric Bavier , Sharlatan Hellseher Received: via spool by 69295-submit@debbugs.gnu.org id=B69295.17084728252558 (code B ref 69295); Tue, 20 Feb 2024 23:47:11 +0000 Received: (at 69295) by debbugs.gnu.org; 20 Feb 2024 23:47:05 +0000 Received: from localhost ([127.0.0.1]:47232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcZpI-0000eu-VG for submit@debbugs.gnu.org; Tue, 20 Feb 2024 18:47:05 -0500 Received: from mail-wm1-f51.google.com ([209.85.128.51]:42383) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcZoC-0000Tv-7P for 69295@debbugs.gnu.org; Tue, 20 Feb 2024 18:45:56 -0500 Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-412698cdd77so13744805e9.1 for <69295@debbugs.gnu.org>; Tue, 20 Feb 2024 15:45:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708472668; x=1709077468; 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=kpDNytUP2OXPmcuJt8KOsukH3i2BGs+2QI/OsaQprvE=; b=Y6caYtuyoAF4bg/hS3wwmvkgtgiV8kaHLOLz6Ozz+skjs9nrUtZOITk/HopuAQU55T rdTnOH6R/r7x3+8XR7jUbyp1JLVKbDTDN8iwNcpsieXkNIwdVJ7Sual9pvTTRk/Yfyvx w6avSfbJqBz0O7/LP2AhDvJLaUINU6+zRMn9xoXBOLFGDLaN3u0skSjT42E04wtiVT8V W2p3o3enfXUJGXWY+UNIDpFK4tAEoU4SNao5bp/PoWYR7P8IPpLnQCcXgTSbut3RgxeQ fOkUBrEJUyxnJl8lc3vEzPwXCPagWOqTehk6UFRut2jNy9G3qfPv7CB/OjpOMEzMQGXj g4Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708472668; x=1709077468; 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=kpDNytUP2OXPmcuJt8KOsukH3i2BGs+2QI/OsaQprvE=; b=OSOXbI9Qu6+m+VM1IAI3Pe+08ddEaswmba6VDFiD8s8jfrQsnzQTzwIN9Q6UKH63Vv IAVz9Yu62C5PtwXaCG21qmK5+ru2e8ngoZpp5SRQQvAYfkeVCiLnUUzXvz25sJjYeP5b WebU9q2bIXvyMuxaYwY7vkeRBtr1ooFwlVCZuVIHMVEv3FM2QtJnsCbE9GwNnnlr6Zex i7uI+tJUSJfpFdLt2QILN4TNDgrQYY2195LGi4YU86mNPqek7cn3AHRMXz1M0BiA12xM xMFsG4vlhkvSUpiuH2SqT0aIG8jefmQSViRUCaElvnORyxwE5N2vgJqNMZ0OYj0hZrNE K5CQ== X-Gm-Message-State: AOJu0YwxZWOmLnFAVE59+yOfr2NsHDr9if+CJ9nKdpWn6gqCL+r8bS0V h/O970dDZMoqQRaqvpeRpmjHCNCJJOrgtsUdlb2No7yPL82BA2ms4R3cldcK/ouIjQ== X-Google-Smtp-Source: AGHT+IF2dw34dhxpF/Ogub2WWWIN9HyIN/7yJYZ+jh2OtzofaXW17EDpts7ntI9MHPxc/fiGH8BLlw== X-Received: by 2002:a05:600c:511b:b0:412:5652:138f with SMTP id o27-20020a05600c511b00b004125652138fmr10448218wms.16.1708472668633; Tue, 20 Feb 2024 15:44:28 -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 n22-20020a05600c4f9600b00411a6ce0f99sm16347385wmq.24.2024.02.20.15.44.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 15:44:28 -0800 (PST) From: Sharlatan Hellseher Date: Tue, 20 Feb 2024 23:43:41 +0000 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: 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-ginga, ginga-qt5): New variables. Change-Id: I51358b4b64241c78f4bbc7fa16fdd2721ddc0d28 --- gnu/packages/astronomy.scm | 57 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 03d43e5a06..282fd1ebb4 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -706,6 +706,63 @@ (define-public python-gatspy series in Python.") (license license:bsd-2))) +(define-public python-ginga + (package + (name "python-ginga") + (version "4.1.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "ginga" version)) + (sha256 + (base32 "0w60w9d2yqhbmggp0dljj5a0sk07gywifjq8nzw3y2v47vzgwqb6")))) + (build-system pyproject-build-system) + (propagated-inputs + (list ;;python-exifread ; optional, not packed yet in Guix + python-astropy + python-astroquery + python-dateutil + python-magic + python-matplotlib + python-fitsio + python-numpy + python-photutils + python-pillow + python-qtpy + python-scipy)) + (native-inputs + (list python-attrs + python-docutils + python-pytest-astropy + python-semantic-version + python-tornado)) + (home-page "https://ejeschke.github.io/ginga/") + (synopsis "Scientific image viewer and toolkit for FITS files") + (description "Ginga is a toolkit designed for building viewers for +scientific image data in Python, visualizing 2D pixel data in numpy arrays. It +can view astronomical data such as contained in files based on the +FITS (Flexible Image Transport System) file format. It is written and is +maintained by software engineers at the National Astronomical Observatory of +Japan (NAOJ), the Space Telescope Science Institute (STScI), and other +contributing entities. + +The Ginga toolkit centers around an image display object which supports zooming +and panning, color and intensity mapping, a choice of several automatic cut +levels algorithms and canvases for plotting scalable geometric forms. In +addition to this widget, a general purpose \"reference\" FITS viewer is +provided, based on a plugin framework. A fairly complete set of standard plugins +are provided for features that we expect from a modern FITS viewer: panning and +zooming windows, star catalog access, cuts, star pick/FWHM, thumbnails, etc.") +(license license:bsd-3))) + +(define-public ginga-qt5 + (package/inherit python-ginga + (name "ginga-qt5") + (inputs + (modify-inputs (package-inputs python-ginga) + (prepend python-pyqt))) + (synopsis "Qt5 image viewer build based on python-ginga library"))) + (define-public qfits (package (name "qfits")