[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#69980] [PATCH python-team v3 13/14] gnu: python-jupytext: Move to p
From: |
Nicolas Graves |
Subject: |
[bug#69980] [PATCH python-team v3 13/14] gnu: python-jupytext: Move to pyproject-build-system. |
Date: |
Sat, 1 Jun 2024 16:58:01 +0200 |
* gnu/packages/python-xyz.scm (python-jupytext):
[build-system]: Move to pyproject-build-system.
[arguments]<#:test-flags>: Add flags.
<#:phases>: Remove 'check phase replacement.
Change-Id: I5d708c2fc76b609105c1551a6ed1755c56efcada
---
gnu/packages/python-xyz.scm | 25 ++++++++++++-------------
1 file changed, 12 insertions(+), 13 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 65345f2b6b5..ae94d13e803 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -455,26 +455,25 @@ (define-public python-jupytext
(file-name (git-file-name name version))
(sha256
(base32 "0bgf0c4py22ip7qfla8mrmypfh3bg151c8awsr1gvcbw7m4ni01k"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
(list
+ #:test-flags
+ '(list "-k" (string-append
+ "not "
+ (string-join
+ (list "test_create_header_with_set_formats"
+ "test_pre_commit_hook"
+ "test_sync_with_pre_commit_hook")
+ " and not ")))
#:phases
#~(modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
+ (add-before 'check 'pre-check
+ (lambda _
;; some tests fail when HOME=/homeless-shelter.
(setenv "HOME" "/tmp")
;; OSError: [Errno 18] Invalid cross-device link
- (setenv "TMPDIR" "/tmp")
- (when tests?
- (let ((disabled-tests
- (list "test_create_header_with_set_formats"
- "test_pre_commit_hook"
- "test_sync_with_pre_commit_hook")))
- (invoke "pytest" "-vv" "-k"
- (string-append "not "
- (string-join disabled-tests
- " and not "))))))))))
+ (setenv "TMPDIR" "/tmp"))))))
(native-inputs
(list git-minimal
python-autopep8
--
2.41.0
- [bug#69980] [PATCH python-team v3 03/14] gnu: python-rich-click: Remove pre-commit from native-inputs., (continued)
- [bug#69980] [PATCH python-team v3 03/14] gnu: python-rich-click: Remove pre-commit from native-inputs., Nicolas Graves, 2024/06/01
- [bug#69980] [PATCH python-team v3 04/14] gnu: python-lazy-loader: Remove pre-commit from native-inputs., Nicolas Graves, 2024/06/01
- [bug#69980] [PATCH python-team v3 05/14] gnu: python-omnipath: Remove pre-commit from native-inputs., Nicolas Graves, 2024/06/01
- [bug#69980] [PATCH python-team v3 06/14] gnu: python-jupytext: Remove pre-commit from native-inputs., Nicolas Graves, 2024/06/01
- [bug#69980] [PATCH python-team v3 07/14] gnu: python-seaborn: Remove pre-commit from native-inputs., Nicolas Graves, 2024/06/01
- [bug#69980] [PATCH python-team v3 08/14] gnu: python-cfgv: Update to 3.4.0., Nicolas Graves, 2024/06/01
- [bug#69980] [PATCH python-team v3 09/14] gnu: Add python-ukkonen., Nicolas Graves, 2024/06/01
- [bug#69980] [PATCH python-team v3 11/14] gnu: python-nodeenv: Update to 1.8.0., Nicolas Graves, 2024/06/01
- [bug#69980] [PATCH python-team v3 10/14] gnu: python-identify: Update to 2.5.36., Nicolas Graves, 2024/06/01
- [bug#69980] [PATCH python-team v3 12/14] gnu: pre-commit: Update to 3.7.1., Nicolas Graves, 2024/06/01
- [bug#69980] [PATCH python-team v3 13/14] gnu: python-jupytext: Move to pyproject-build-system.,
Nicolas Graves <=
- [bug#69980] [PATCH python-team v3 14/14] gnu: jupytext: Fix pre-commit native-input removal., Nicolas Graves, 2024/06/01