[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#67237] [PATCH 26/32] gnu: parfive: Improve package style.
From: |
Sharlatan Hellseher |
Subject: |
[bug#67237] [PATCH 26/32] gnu: parfive: Improve package style. |
Date: |
Fri, 17 Nov 2023 12:16:15 +0000 |
* gnu/packages/python-web.scm (parfive): Update package style.
[build-system]: Swap to python-build-system.
[arguments]{phases}: Remove 'disable-test-requiring-network phase. Use
standard 'check phase. {test-flags}: Disable tests requiring network
access.
Change-Id: I5d233079f629398232f134c41fad6ea516c44c7f
---
gnu/packages/python-web.scm | 19 ++++++++-----------
1 file changed, 8 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 4b6f20745c..cc95643f07 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1204,18 +1204,15 @@ (define-public parfive
(sha256
(base32
"0pf8rzfwxpkn84xzb4v8m1fy3k7kjlh8f9ln4y5xqlnbqpwi30lh"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
- (list #:phases #~(modify-phases %standard-phases
- (add-before 'check 'disable-test-requiring-network
- (lambda _
- (substitute* "parfive/tests/test_downloader.py"
- (("def test_ftp")
- "def __off_test_ftp"))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "python" "-m" "pytest" "-vvv"
"parfive")))))))
+ (list
+ #:test-flags
+ ;; Disable tests requiring network access.
+ #~(list "-k" (string-append "not test_ftp"
+ " and not test_download_unique"
+ " and not test_custom_user_agent"
+ " and not test_multipart"))))
(propagated-inputs (list python-aiofiles python-aioftp python-aiohttp
python-tqdm))
(native-inputs (list python-pytest
--
2.41.0
- [bug#67237] [PATCH 15/32] gnu: python-sgp4: Update to 2.23., (continued)
- [bug#67237] [PATCH 15/32] gnu: python-sgp4: Update to 2.23., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 03/32] gnu: libpasastro: Update to 1.4.1., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 11/32] gnu: python-pynbody: Update to 1.4.2., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 19/32] gnu: python-stsci-imagestats: Swap to pyproject-build-system., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 12/32] gnu: python-pynbody: Prepare for cross compilation., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 18/32] gnu: python-drms: Simplify package., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 10/32] gnu: python-posix-ipc: Update to 1.1.1., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 17/32] gnu: splash: Update to 3.9.0., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 20/32] gnu: python-astroquery: Improve package style., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 23/32] gnu: python-extension-helpers: Update to 1.1.0., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 26/32] gnu: parfive: Improve package style.,
Sharlatan Hellseher <=
- [bug#67237] [PATCH 29/32] gnu: python-memory-profiler: Enable all tests., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 21/32] gnu: python-extension-helpers: Enable tests., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 09/32] gnu: python-jplephem: Update to 2.20., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 01/32] gnu: celestia: Update to 1.6.4., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 32/32] gnu: python-posix-ipc: Limit tests to target-x86., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 08/32] gnu: python-fitsio: Update to 1.2.1., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 24/32] gnu: python-poliastro: Improve package style., Sharlatan Hellseher, 2023/11/17
- [bug#67237] [PATCH 25/32] gnu: parfive: Update to 2.0.2., Sharlatan Hellseher, 2023/11/17