summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-08-13 21:47:50 +0100
committerAndrew Tropin <andrew@trop.in>2025-08-31 15:24:40 +0700
commitf553f9c43efdc1f0aeff88ce58a21bdb510884ed (patch)
tree561ebd852335b5838eca0820293d644242bf1ae2 /gnu
parent7be0086fbffa44c168af16739a4a7337f0ed35ef (diff)
gnu: python-extension-helpers: Update to 1.4.0.
* gnu/packages/python-xyz.scm (python-extension-helpers): Update to 1.4.0. [arguments] <test-flags>: Rework skipped tests. <phases>: Use default 'check. [propagated-inputs]: Add python-setuptools-next. [native-inputs]: Remove python-pytest-astropy, python-pytest-cov, python-tomli, python-setuptools, python-wheel, and python-pip. Change-Id: I577f2021e77ad30fa60250fcccaf53f963c740b0
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-xyz.scm39
1 files changed, 18 insertions, 21 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 0fd1276fa53..e2fbcde061c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -6522,44 +6522,41 @@ defined.")
(define-public python-extension-helpers
(package
(name "python-extension-helpers")
- (version "1.2.0")
+ (version "1.4.0")
(source
(origin
(method git-fetch) ; no tests in the PyPI tarball
(uri (git-reference
- (url "https://github.com/astropy/extension-helpers")
- (commit (string-append "v" version))))
+ (url "https://github.com/astropy/extension-helpers")
+ (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1cfzh3ijjp18as2qnmm1nnw6a3daqd7a2q17i0c6h1wq2jbawxxa"))))
+ (base32 "0ljvfv9p7jay4j31awx1h714xhyn5hbfgyhn4nm71xrkz9la113j"))))
(build-system pyproject-build-system)
(arguments
(list
- ;; It tries to install it via pip: E ModuleNotFoundError: No module named
- ;; 'helpers_test_package_fd9cc3a9_11fa_4a1a_b80e_c5b043949604'
- #:test-flags #~(list "-k" "not test_only_pyproject and not test_no_setup_py")
+ #:test-flags
+ #~(list "--pyargs" "extension_helpers"
+ "-k" (string-join
+ ;; XXX: Tests try to check various compilation options and
+ ;; fail with some incomparability or trying to download
+ ;; missing modules.
+ (list "not test_only_pyproject"
+ "test_no_setup_py"
+ "test_limited_api")
+ " and not "))
#:phases
#~(modify-phases %standard-phases
;; LookupError: setuptools-scm was unable to detect version for
;; /tmp/guix-build-python-extension-helpers-1.2.0.drv-0/source.
(add-before 'build 'set-version
(lambda _
- (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))
- (replace 'check
- (lambda* (#:key tests? test-flags #:allow-other-keys)
- (when tests?
- (setenv "HOME" "/tmp")
- (with-directory-excursion "/tmp"
- (apply invoke "pytest" "-v" test-flags))))))))
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
(native-inputs
(list python-pytest
- python-pytest-astropy
- python-pytest-cov
- python-setuptools-scm
- python-tomli
- python-setuptools
- python-wheel
- python-pip))
+ python-setuptools-scm))
+ (propagated-inputs
+ (list python-setuptools-next))
(home-page "https://extension-helpers.readthedocs.io")
(synopsis "Astropy ecosystem utilities for building and installing packages")
(description