[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/46: gnu: parfive: Simplify package.
From: |
guix-commits |
Subject: |
06/46: gnu: parfive: Simplify package. |
Date: |
Tue, 27 Feb 2024 17:55:13 -0500 (EST) |
sharlatan pushed a commit to branch master
in repository guix.
commit 63bcebd90e092aed9b5014cff1660d9ac83cbce7
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Thu Feb 15 15:00:52 2024 +0000
gnu: parfive: Simplify package.
* gnu/packages/python-web.scm (parfive) [build-system]: Swap to
pyproject-build-system.
[arguments] <#:phases>: Use standard 'check phase. <#:test-flags>: Move
disabled tests here and remove 'disable-test-requiring-network phase.
Change-Id: I08b67b2aa7027ac37e0a3df4da7ebb01ea3c451e
---
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 adae8d7272..de57d5be94 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1326,18 +1326,15 @@ HTTP servers, RESTful APIs, and web services.")
(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
+ ;; Disable tests requiring network access.
+ #:test-flags
+ #~(list "-k" (string-append
+ "not test_ftp"
+ " and not test_ftp_pasv_command"
+ " and not test_ftp_http"))))
(propagated-inputs (list python-aiofiles python-aioftp python-aiohttp
python-tqdm))
(native-inputs (list python-pytest
- branch master updated (16ab67182b -> 8c0282cf54), guix-commits, 2024/02/27
- 02/46: gnu: giza: Update to 1.4.1., guix-commits, 2024/02/27
- 05/46: gnu: parfive: Update to 2.0.2., guix-commits, 2024/02/27
- 01/46: gnu: calceph: Update to 3.5.5., guix-commits, 2024/02/27
- 09/46: gnu: Add python-astropy-iers-data., guix-commits, 2024/02/27
- 06/46: gnu: parfive: Simplify package.,
guix-commits <=
- 12/46: gnu: python-asdf-2.15: Deprecate package., guix-commits, 2024/02/27
- 08/46: gnu: python-aioftp: Update to 0.22.3., guix-commits, 2024/02/27
- 10/46: gnu: python-astropy: Update to 6.0.0., guix-commits, 2024/02/27
- 04/46: gnu: phd2: Update to 2.6.13., guix-commits, 2024/02/27
- 11/46: gnu: python-astropy: Improve packages style., guix-commits, 2024/02/27
- 03/46: gnu: indi-2.0: Update to 2.0.6., guix-commits, 2024/02/27
- 15/46: gnu: python-asdf-transform-schemas: Update to 0.4.0., guix-commits, 2024/02/27
- 07/46: gnu: siril: Update to 1.2.1., guix-commits, 2024/02/27
- 13/46: gnu: python-asdf-fits-schemas: Update to 0.0.1-1.d1b5e7a., guix-commits, 2024/02/27
- 14/46: gnu: python-asdf-time-schemas: Update to 0.0.1-3.a306206., guix-commits, 2024/02/27