From patchwork Fri Jun 21 18:38:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 65545 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 1FD5C27BBEA; Fri, 21 Jun 2024 19:42:25 +0100 (BST) 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, SPF_HELO_PASS 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 5C69527BBE2 for ; Fri, 21 Jun 2024 19:42:24 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sKjCG-0008Sc-6H; Fri, 21 Jun 2024 14:41:16 -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 1sKjCC-0008Oe-Nt for guix-patches@gnu.org; Fri, 21 Jun 2024 14:41:12 -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 1sKjCC-0003Qs-Fx for guix-patches@gnu.org; Fri, 21 Jun 2024 14:41:12 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sKjCB-0004Tl-Op; Fri, 21 Jun 2024 14:41:11 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71702] [PATCH 25/30] gnu: Add python-regularizepsf. 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: Fri, 21 Jun 2024 18:41:11 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71702 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71702@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 71702-submit@debbugs.gnu.org id=B71702.171899524916907 (code B ref 71702); Fri, 21 Jun 2024 18:41:11 +0000 Received: (at 71702) by debbugs.gnu.org; 21 Jun 2024 18:40:49 +0000 Received: from localhost ([127.0.0.1]:43566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sKjBo-0004OW-Vf for submit@debbugs.gnu.org; Fri, 21 Jun 2024 14:40:49 -0400 Received: from mail-wm1-f43.google.com ([209.85.128.43]:57590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sKjBX-0004Lb-4s for 71702@debbugs.gnu.org; Fri, 21 Jun 2024 14:40:31 -0400 Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-42165f6645fso19976985e9.2 for <71702@debbugs.gnu.org>; Fri, 21 Jun 2024 11:40:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718995166; x=1719599966; 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=AJ7nzOaVjYrROoOYExALrm6ib83K9zCfSGTYIR0Jfbw=; b=GMPFrRjQRbqv6mKHYgd+06EevZwnHCR92nSM7SX/+w321BGxSPygN/vFjErqi86EiK 1tsPjvvLgK9eTpUbkC4ic1XjJb+S+Jl2htPJXrthWyVI+5BiqYKgcz2paBH0FVVQ2u8c M0aZFm89ts2NB3OBGVx/CAexVhJQhel3q1ITv/JQRPR2Rg/cOFnef6ZDb+fDil3r+kQe naHwpEIGyuadh5QACxzktoUyMG83MPt0oy4rCuWabyPy5bnTurn8fLJ/87k8IVafuHX1 tRgH+a7Fq9uPvgnhF4WsjatbtEIfFOWcWgsCoOsgQ3yAJM23Y4e/mMsgR+rWET/LWdiD SAnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718995166; x=1719599966; 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=AJ7nzOaVjYrROoOYExALrm6ib83K9zCfSGTYIR0Jfbw=; b=GmJ8ZeBeaFXYFVIWGM+aCIKOVajPTXUqptESk/whkaQZx9PNMdwhAOxI9TC0pID2VM lfb4gsYXKJOYJfr9drPG2uqM/YzpxT56g2Vg09FVYhYacWEcSXrv59wl6UD78H8vojAY NSC5ziLfbDTe3G0hUlPyQo1yA+F8CetjLSeQ0ahJTL8ELQzjEFZ+G0JjeH883xJ58Fem O3msqgjzJKeosF9cBXrKzQoPNHmkFgEJ0Wbjze7L4SmohzYTN9mr/ewCVc/xC4BGBYDw 6CYzwh7U/DO5I0K29ctDKPvkwReVi3SAO/Kw2al6oa5EQkb/GLoxCntqZDgcQWcr8y1/ MvzQ== X-Gm-Message-State: AOJu0YxDl8udWKa5TH0VyrRuLNFCJz1PFhxSdDI/hD7/oQSkkuwh3S/D NPY5xodUjb77CzJrXDjY9gdqkWlKLW7WH7UNsw/wyhYRBFwFv63iZ4fQOgai X-Google-Smtp-Source: AGHT+IHJasE2PkvPehqpY2OnaKksPDHK31kOAaUloo8aaNpkkUQW/wNhDyiMY7Apq0Z17JyvxyDATg== X-Received: by 2002:a05:600c:4a9a:b0:422:720a:1be9 with SMTP id 5b1f17b1804b1-4247517f131mr71116555e9.20.1718995166143; Fri, 21 Jun 2024 11:39:26 -0700 (PDT) Received: from guxtil.incerto.xyz (bagu-15-b2-v4wan-170076-cust245.vm21.cable.virginm.net. [77.98.0.246]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4247d0b63d4sm76298985e9.3.2024.06.21.11.39.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jun 2024 11:39:25 -0700 (PDT) From: Sharlatan Hellseher Date: Fri, 21 Jun 2024 19:38:47 +0100 Message-ID: <3468fb2b588a457f6370b300f3b53c6577525edc.1718966788.git.sharlatanus@gmail.com> 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-regularizepsf): New variable. Change-Id: I168b531f681999def9e08d2e8aa63e4ccc11bb29 --- gnu/packages/astronomy.scm | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 676bf437ef..4e8ebc3830 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -2800,6 +2800,54 @@ (define-public python-regions (description "Regions is an Astropy package for region handling.") (license license:bsd-3))) +(define-public python-regularizepsf + (package + (name "python-regularizepsf") + (version "0.3.4") + (source + (origin + (method git-fetch) ; no tests data in the PyPI tarball + (uri (git-reference + (url "https://github.com/punch-mission/regularizepsf") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "078nklks6hjq0hgv6wpbh2x1m2yh6kmzyfgdzd9q82lxpjy1vq0i")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'relax-requirements + (lambda _ + (substitute* "setup.py" + ;; numpy==1.26.4 + (("==1.26.4") ">=1.23")))) + (add-before 'check 'build-extensions + (lambda _ + (invoke "python" "setup.py" "build_ext" "--inplace")))))) + (propagated-inputs + (list python-astropy + python-dill + python-h5py + python-lmfit + python-matplotlib + python-numpy + python-scikit-image + python-scipy + python-sep)) + (native-inputs + (list python-cython + python-pytest + python-pytest-mpl + python-pytest-runner)) + (home-page "https://github.com/punch-mission/regularizepsf") + (synopsis "Point spread function modeling and regularization") + (description + "This package inplements functionality of @acronym{Point Spread Function, +PSF} describing how the optical system spreads light from sources.") + (license license:expat))) + (define-public python-reproject (package (name "python-reproject")