[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#70746] [PATCH 012/714] gnu: python-jupytext: Improve package style.
From: |
Nicolas Graves |
Subject: |
[bug#70746] [PATCH 012/714] gnu: python-jupytext: Improve package style. |
Date: |
Fri, 3 May 2024 18:55:11 +0200 |
* gnu/packages/python-xyz.scm (python-jupytext): Improve package
style.
[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 6338750d0b..51273ca91a 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -404,26 +404,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#70736] [PATCH 002/714] gnu: python-ovh: Remove python-black native-input., (continued)
- [bug#70736] [PATCH 002/714] gnu: python-ovh: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70737] [PATCH 003/714] gnu: python-funsor: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70738] [PATCH 004/714] gnu: python-imbalanced-learn: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70740] [PATCH 005/714] gnu: python-hyperopt: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70741] [PATCH 006/714] gnu: python-captum: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70742] [PATCH 007/714] gnu: python-pyro-ppl: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70744] [PATCH 010/714] gnu: python-starsessions-for-pytorch-lightning: Remove python-black., Nicolas Graves, 2024/05/03
- [bug#70743] [PATCH 008/714] gnu: python-trezor: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70747] [PATCH 009/714] gnu: python-openai: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70745] [PATCH 011/714] gnu: python-graphtools: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70746] [PATCH 012/714] gnu: python-jupytext: Improve package style.,
Nicolas Graves <=
- [bug#70748] [PATCH 013/714] gnu: python-pydantic-cli: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70749] [PATCH 014/714] gnu: python-imageio: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70750] [PATCH 015/714] gnu: python-isort: Improve package style., Nicolas Graves, 2024/05/03
- [bug#70751] [PATCH 016/714] gnu: python-imageio: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70753] [PATCH 017/714] gnu: python-minikanren: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70754] [PATCH 018/714] gnu: python-eliot: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70755] [PATCH 019/714] gnu: python-update-checker: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70758] [PATCH 022/714] gnu: scvelo: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70757] [PATCH 021/714] gnu: python-liana-py: Remove python-black native-input., Nicolas Graves, 2024/05/03
- [bug#70756] [PATCH 020/714] gnu: python-doubletdetection: Remove python-black native-input., Nicolas Graves, 2024/05/03