unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Sharlatan Hellseher <sharlatanus@gmail.com>
To: 72741@debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus@gmail.com>,
	Andreas Enge <andreas@enge.fr>, Eric Bavier <bavier@posteo.net>,
	Sharlatan Hellseher <sharlatanus@gmail.com>
Subject: [bug#72741] [PATCH 20/32] gnu: python-stcal: Update to 1.8.0.
Date: Wed, 21 Aug 2024 01:03:22 +0100	[thread overview]
Message-ID: <c82645ae83a456436881d309b5c4777da652a579.1724198118.git.sharlatanus@gmail.com> (raw)
In-Reply-To: <cover.1724198118.git.sharlatanus@gmail.com>

* gnu/packages/astronomy.scm (python-stcal): Update to 1.8.0.
[arguments] <#:test-flags>: Disable some tests requiring network access.
<#:phases>: Add 'patch-slope-fitter phase.
[propagated-inputs]: Add python-drizzle, python-requests,
python-scikit-image, and python-tweakwcs.
[native-inputs]: Remove python-pytest-cov.

Change-Id: Ibe7737a99dc8ef6a5219769e9ecbac1a0327d062
---
 gnu/packages/astronomy.scm | 28 ++++++++++++++++++++++++----
 1 file changed, 24 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index bf43123538..1bb8356346 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -3703,18 +3703,35 @@ (define-public python-stsci-stimage
 (define-public python-stcal
   (package
     (name "python-stcal")
-    (version "1.7.1")
+    (version "1.8.0")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "stcal" version))
        (sha256
-        (base32 "003ygbfa25awvy2zjfxd1k4f1aklsvd53sdk7qa0w42v6ys2kabs"))))
+        (base32 "0vcq1462wdfi96qqsd5bidx38bbpnpcm18j6s761jz8ymi6vifap"))))
     (build-system pyproject-build-system)
     (arguments
      (list
+      #:test-flags
+      #~(list "-k" (string-append
+                    ;; Tests requiring network access.
+                    "not test_absolute_align"
+                    " and not test_relative_align[True]"
+                    " and not test_relative_align[False]"
+                    " and not test_get_catalog"
+                    " and not test_create_catalog"
+                    " and not test_create_catalog_graceful_failure"
+                    " and not test_parse_refcat"))
       #:phases
       #~(modify-phases %standard-phases
+          (add-after 'unpack 'patch-slope-fitter
+            (lambda _
+              (substitute* "src/stcal/ramp_fitting/src/slope_fitter.c"
+                ;; It's failing to build, it looks like Guix's NumPy does not
+                ;; contain the variable: error: ‘NPY_NTYPES_LEGACY’ undeclared
+                ;; (first use in this function)
+                ((".*NPY_NTYPES_LEGACY.*") ""))))
           (add-before 'build 'silent-check-for-opencv
             (lambda _
               ;; XXX: Can't detect opencv-python version. The input opencv
@@ -3729,14 +3746,17 @@ (define-public python-stcal
      (list opencv ;Provides OpenCV-Python
            python-asdf
            python-astropy
+           python-drizzle
            python-gwcs
            python-numpy
-           python-scipy))
+           python-requests
+           python-scikit-image
+           python-scipy
+           python-tweakwcs))
     (native-inputs
      (list python-cython-3
            python-psutil
            python-pytest
-           python-pytest-cov
            python-pytest-doctestplus
            python-setuptools-scm))
     (home-page "https://github.com/spacetelescope/stcal")
-- 
2.41.0





  parent reply	other threads:[~2024-08-21  0:06 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-21  0:01 [bug#72741] [PATCH 00/32] Astronomy update 2024/08 Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 01/32] gnu: indi-2.0: Adjust package style Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 02/32] gnu: indi-2.0: Update to 2.0.9 Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 03/32] gnu: python-astroplan: Update to 0.10.1 Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 04/32] gnu: python-astropy-iers-data: Update to 0.2024.8.12.0.32.58 Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 05/32] gnu: python-astropy: Update to 6.1.2 Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 06/32] gnu: python-crds: Update to 11.18.1 Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 07/32] gnu: python-czml3: Update to 1.0.2 Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 08/32] gnu: python-drms: Update to 0.8.0 Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 09/32] gnu: python-dust-extinction: Update to 1.5 Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 10/32] gnu: python-glue-core: Adjust inputs Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 11/32] gnu: python-glymur: Update to 0.13.5 Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 12/32] gnu: python-mpl-animators: Update to 1.2.0 Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 13/32] gnu: python-rad: Update to 0.21.0 Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 14/32] gnu: python-radiospectra: Update to 0.6.0 Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 15/32] gnu: python-reproject: Update to 0.14.0 Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 16/32] gnu: python-roman-datamodels: Update to 0.21.0 Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 17/32] gnu: python-specutils: Update to 1.16.0 Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 18/32] gnu: python-shapely: Update to 2.0.5 Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 19/32] gnu: python-shapely: Adjust home page Sharlatan Hellseher
2024-08-21  0:03 ` Sharlatan Hellseher [this message]
2024-08-21  0:03 ` [bug#72741] [PATCH 21/32] gnu: python-stpipe: Update to 0.7.0 Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 22/32] gnu: python-sunpy: Update to 6.0.1 Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 23/32] gnu: python-viresclient: Update to 0.12.0 Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 24/32] gnu: Add python-soxs Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 25/32] gnu: Add python-pyxsim Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 26/32] gnu: Add python-specreduce Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 27/32] gnu: Add python-glue-astronomy Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 28/32] gnu: Add python-pvextractor Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 29/32] gnu: Add python-glue-qt Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 30/32] gnu: Add python-sunkit-image Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 31/32] gnu: Add python-zodipy Sharlatan Hellseher
2024-08-21  0:03 ` [bug#72741] [PATCH 32/32] gnu: python-sunkit-image: Disable more failing tests Sharlatan Hellseher
2024-08-27 16:06 ` bug#72741: [PATCH 00/32] Astronomy update 2024/08 Sharlatan Hellseher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c82645ae83a456436881d309b5c4777da652a579.1724198118.git.sharlatanus@gmail.com \
    --to=sharlatanus@gmail.com \
    --cc=72741@debbugs.gnu.org \
    --cc=andreas@enge.fr \
    --cc=bavier@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).