[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#58587] [PATCH v3 19/22] gnu: python-path: Use pyproject-build-syste
From: |
Marius Bakke |
Subject: |
[bug#58587] [PATCH v3 19/22] gnu: python-path: Use pyproject-build-system. |
Date: |
Sun, 23 Oct 2022 00:20:57 +0200 |
* gnu/packages/python-xyz.scm (python-path-bootstrap)[build-system]: Switch to
PYPROJECT-BUILD-SYSTEM.
[arguments]: Remove #:phases.
[native-inputs]: Remove PYTHON-PYPA-BUILD.
(python-path): Remove #:phases. Add #:test-flags.
---
gnu/packages/python-xyz.scm | 42 +++++++++++--------------------------
1 file changed, 12 insertions(+), 30 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f4113ca351..72a516e6fb 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12548,25 +12548,10 @@ (define-public python-path-bootstrap
(uri (pypi-uri "path" version))
(sha256
(base32 "0lig13gxnfv98v790db1smvsbd3mnj7y8rwyiwhfi6xiqibygwms"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
- (list
- #:tests? #f
- #:phases
- #~(modify-phases %standard-phases
- ;; XXX: PEP 517 manual build/install procedures copied from
- ;; python-isort.
- (replace 'build
- (lambda _
- ;; ZIP does not support timestamps before 1980.
- (setenv "SOURCE_DATE_EPOCH" "315532800")
- (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
- (replace 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((whl (car (find-files "dist" "\\.whl$"))))
- (invoke "pip" "--no-cache-dir" "--no-input"
- "install" "--no-deps" "--prefix" #$output whl)))))))
- (native-inputs (list python-pypa-build python-setuptools-scm))
+ (list #:tests? #f))
+ (native-inputs (list python-setuptools-scm))
(home-page "https://github.com/jaraco/path")
(synopsis "Object-oriented file system path manipulation library")
(description "@code{path} (formerly @code{path.py}) implements path
@@ -12582,18 +12567,15 @@ (define-public python-path
(package-arguments python-path-bootstrap)
((#:tests? _ #f)
(not (%current-target-system)))
- ((#:phases phases #~%standard-phases)
- #~(modify-phases #$phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- ;; Do not test the myproject.toml build as it tries to pull
- ;; dependencies from the Internet.
- (invoke "pytest" "-vv" "-k"
- (string-append
- "not project "
- ;; This tests assumes a root user exists.
- "and not test_get_owner")))))))))
+ ((#:test-flags flags #~'())
+ #~(append (list "-vv" "-k"
+ (string-append
+ ;; Do not test the myproject.toml build as it tries
+ ;; to pull dependencies from the Internet.
+ "not project "
+ ;; This tests assumes a root user exists.
+ "and not test_get_owner"))
+ #$flags))))
(native-inputs
(modify-inputs (package-native-inputs python-path-bootstrap)
(append python-appdirs
--
2.38.0
- [bug#58587] [PATCH v3 02/22] gnu: pypy: Move to separate module., (continued)
- [bug#58587] [PATCH v3 02/22] gnu: pypy: Move to separate module., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v3 03/22] gnu: python-pip: Move to (gnu packages python-build)., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v3 10/22] gnu: python-glyphslib: Use pyproject-build-system., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v3 06/22] gnu: python-autopage: Use pyproject-build-system., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v3 07/22] gnu: flair: Switch to pyproject-build-system., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v3 18/22] gnu: python-openapi-spec-validator: Use pyproject-build-system., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v3 17/22] gnu: python-openapi-schema-validator: Use pyproject-build-system., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v3 15/22] gnu: python-pygmsh: Use pyproject-build-system., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v3 20/22] gnu: python-cattrs: Use pyproject-build-system., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v3 22/22] gnu: python-deepmerge: Use pyproject-build-system., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v3 19/22] gnu: python-path: Use pyproject-build-system.,
Marius Bakke <=
- [bug#58587] [PATCH v3 11/22] gnu: python-statmake: Use pyproject-build-system., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v3 12/22] gnu: python-ufolib2: Use pyproject-build-system., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v3 14/22] gnu: python-tempora: Switch to pyproject-build-system., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v3 13/22] gnu: python-mypy-protobuf: Switch to pyproject-build-system., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v3 16/22] gnu: zabbix-cli: Switch to pyproject-build-system., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH v3 21/22] gnu: python-scikit-build: Switch to pyproject-build-system., Marius Bakke, 2022/10/22
- [bug#58587] [PATCH 00/14] Introducing pyproject-build-system., Maxim Cournoyer, 2022/10/27