gnu: Respect --cores build argument in some python packages.

Reported by Greg Hogan <code@greghogan.com> in #74445.

* gnu/packages/astronomy.scm (python-asdf-astropy, python-astropy,
python-photutils, python-poppy, python-regions, python-reproject,
python-sunpy, python-spectral-cube, python-stdatamodels, python-pysiaf,
python-sbpy, python-asdf-coordinates-schemas, python-roman-datamodels,
python-webbpsf, python-yt):
[arguments]<test-flags>: Adjust "-n" or "--numprocess" to respect
"--cores" build argument.

* gnu/packages/check.scm (python-crosshair): Likewise.

* gnu/packages/databases.scm (python-fastparquet, python-pycurl, awscli,
python-s3transfer): Likewise.

* gnu/packages/python-xyz.scm (python-glymur, python-zarr, python-dask):
Likewise.

Change-Id: Ifbc6435e4ad22b0ae822b485bccca41eaa165cc5
This commit is contained in:
Sharlatan Hellseher 2024-11-20 20:33:10 +00:00
parent 8d6389b866
commit d3b010c38c
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5
5 changed files with 24 additions and 23 deletions

View file

@ -2026,7 +2026,7 @@ Amazon S3 compatible object storage server.")
(build-system pyproject-build-system)
(arguments
'(#:test-flags
(list "-n" "auto"
(list "--n" (number->string (parallel-job-count))
"-k" (string-append
;; Disable hanginging tests
"not test_multi_socket_select"
@ -4235,7 +4235,7 @@ opt.override_default_trust_store_from_path(None, os.getenv('SSL_CERT_FILE')) if
(arguments
(list
#:test-flags
#~(list "--numprocesses" "auto"
#~(list "--numprocesses" (number->string (parallel-job-count))
;; Tests require networking.
"--ignore" "tests/integration"
;; It strugles to set PYTHONPATH.
@ -4909,7 +4909,7 @@ Betamax that may possibly end up in the main package.")
(arguments
(list
#:test-flags
#~(list "--numprocesses" "auto"
#~(list "--numprocesses" (number->string (parallel-job-count))
;; Tests require networking.
"--ignore" "tests/integration")))
(native-inputs