From 74f26ccb38fa7e73920f2fd869bbe5f72a012f71 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 16 Nov 2025 14:44:04 +0000 Subject: [PATCH] gnu: python-astroscrappy: Update to 1.3.0. * gnu/packages/astronomy.scm (python-astroscrappy): Update to 1.3.0. [arguments] : Remove 'preparations, 'writable-compiler, and 'tests-preparation; use custom 'check; add 'post-check. [native-inputs]: Remove python-wheel; add python-setuptools. Change-Id: I3c028da61cc157a989ab2bc0483691da503511c1 --- gnu/packages/astronomy.scm | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index da796bbcc0f035a0235c9a466c09d287909e8113..fc70b7d39a5f220709406e60dda514e3094a7dd7 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -3222,34 +3222,33 @@ online Astronomical data. Each web service has its own sub-package.") (define-public python-astroscrappy (package (name "python-astroscrappy") - (version "1.2.0") + (version "1.3.0") (source (origin (method url-fetch) (uri (pypi-uri "astroscrappy" version)) (sha256 - (base32 "0r2alg8imr201ykjsvr6y43bzw8mwbc4ddprn8f6qfw9k4hsx8ff")))) + (base32 "1jpj7df26w31brbkhc1xrqaz2ayz9w3s88ia5vq86als7sfhfs5q")))) (build-system pyproject-build-system) (arguments (list - #:test-flags #~(list "--pyargs" "astroscrappy") #:phases #~(modify-phases %standard-phases - (add-after 'unpack 'preparations - (lambda _ (setenv "HOME" "/tmp"))) - (add-before 'install 'writable-compiler - (lambda _ (make-file-writable "astroscrappy/_compiler.c"))) - (add-before 'check 'tests-preparation + (replace 'check + (lambda* (#:key tests? test-flags #:allow-other-keys) + (with-directory-excursion #$output + (apply invoke "pytest" "-vv" test-flags)))) + (add-before 'check 'post-check (lambda _ - (make-file-writable "astroscrappy/_compiler.c") - (invoke "python" "setup.py" "build_ext" "--inplace")))))) + (for-each delete-file-recursively + (find-files #$output "__pycache__" #:directories? #t))))))) (native-inputs (list python-cython python-extension-helpers python-pytest-astropy python-scipy - python-setuptools-scm - python-wheel)) + python-setuptools + python-setuptools-scm)) (propagated-inputs (list python-astropy python-numpy))