summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-10-17 22:09:53 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-30 18:34:51 +0000
commitfc0f5fa94154be77917b6714a52bed756c1b9258 (patch)
tree501e7e46a13228fe0093781ad1e45f171d98b72d
parent567dad02ba96a489f3218bf3ad97fd20b0eaf7b6 (diff)
gnu: python-stsci-imagestats: Improve packaging.
* gnu/packages/astronomy.scm (python-stsci-imagestats)[arguments] <test-flags>: Provide "--pyargs" to test again installed library. <phases>: Remove 'build-extensions; add 'set-version. [native-inputs]: Remove python-wheel. Change-Id: Ice6e79f98e903b4090091022d42397cca8a82fef
-rw-r--r--gnu/packages/astronomy.scm29
1 files changed, 17 insertions, 12 deletions
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index e32144f86bc..8d4e3ff3fb4 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -8739,24 +8739,29 @@ Telescope Science Institute} image array manipulation functions.")
(package
(name "python-stsci-imagestats")
(version "1.8.3")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "stsci.imagestats" version))
- (sha256
- (base32
- "1nmya85bf2747c9ggya6my5b1slk6g2a7bk16rdv8r5a4ah9hda5"))))
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "stsci.imagestats" version))
+ (sha256
+ (base32 "1nmya85bf2747c9ggya6my5b1slk6g2a7bk16rdv8r5a4ah9hda5"))))
(build-system pyproject-build-system)
(arguments
(list
+ #:test-flags
+ #~(list "--pyargs" "stsci.imagestats")
#:phases
#~(modify-phases %standard-phases
- (add-before 'check 'build-extensions
+ (add-after 'unpack 'set-version
(lambda _
- ;; Cython extensions have to be built before running the tests.
- (invoke "python" "setup.py" "build_ext" "--inplace"))))))
- (propagated-inputs (list python-numpy))
- (native-inputs (list python-pytest python-setuptools python-wheel
- python-setuptools-scm))
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION"
+ #$(version-major+minor+point version)))))))
+ (native-inputs
+ (list python-pytest
+ python-setuptools
+ python-setuptools-scm))
+ (propagated-inputs
+ (list python-numpy))
(home-page "https://stsciimagestats.readthedocs.io/en/latest/")
(synopsis "Compute sigma-clipped statistics on data arrays")
(description