[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
298/361: gnu: python-exceptiongroup: Move to python-build.
From: |
guix-commits |
Subject: |
298/361: gnu: python-exceptiongroup: Move to python-build. |
Date: |
Fri, 22 Nov 2024 06:01:01 -0500 (EST) |
andreas pushed a commit to branch python-team
in repository guix.
commit 228aa561e06abc94823522d8a8c9c9bedf760620
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Sun Nov 10 15:05:10 2024 +0000
gnu: python-exceptiongroup: Move to python-build.
* gnu/packages/python-xyz.scm (python-exceptiongroup): Move from here ...
* gnu/packages/python-build.scm: ... to here.
Change-Id: Id034df5a988c5f6a4448879ba44ee1315888f63b
---
gnu/packages/python-build.scm | 44 +++++++++++++++++++++++++++++++++++++++++++
gnu/packages/python-xyz.scm | 43 ------------------------------------------
2 files changed, 44 insertions(+), 43 deletions(-)
diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm
index 9077eb854a..62fa7a65e9 100644
--- a/gnu/packages/python-build.scm
+++ b/gnu/packages/python-build.scm
@@ -729,6 +729,50 @@ installed, will expose packages in a local directory on
@code{sys.path} in
reflected in the package visible to Python, without needing a reinstall.")
(license license:expat)))
+;; This package may be removed when we have Python 3.11 on board.
+(define-public python-exceptiongroup
+ (package
+ (name "python-exceptiongroup")
+ (version "1.1.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/agronholm/exceptiongroup")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0wcvzwgjs0xmggs6dh92jxdqi988gafzh10hrzvw10kasy0xakfj"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:tests? #f ;TODO: Circular dependency on pytest
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; XXX: PEP 517 manual build/install procedures copied from
+ ;; python-isort.
+ (replace 'build
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)
+ ;; 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))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv" "tests")))))))
+ (native-inputs (list python-flit-scm python-pypa-build))
+ (home-page "https://github.com/agronholm/exceptiongroup")
+ (synopsis "PEP 654 backport from Python 3.11")
+ (description "This is a backport of the @code{BaseExceptionGroup} and
+@code{ExceptionGroup} classes from Python 3.11.")
+ (license license:expat)))
+
(define-public python-hatchling
(package
(name "python-hatchling")
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 8a56f8eca4..de316b0cba 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -5317,49 +5317,6 @@ user configuration files. It does not have support for
serializing into YAML
and is not compatible with JSON.")
(license license:expat)))
-(define-public python-exceptiongroup
- (package
- (name "python-exceptiongroup")
- (version "1.1.1")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/agronholm/exceptiongroup")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0wcvzwgjs0xmggs6dh92jxdqi988gafzh10hrzvw10kasy0xakfj"))))
- (build-system python-build-system)
- (arguments
- (list
- #:tests? #f ;TODO: Circular dependency on pytest
- #:phases
- #~(modify-phases %standard-phases
- ;; XXX: PEP 517 manual build/install procedures copied from
- ;; python-isort.
- (replace 'build
- (lambda _
- (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)
- ;; 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))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "-vv" "tests")))))))
- (native-inputs (list python-flit-scm python-pypa-build))
- (home-page "https://github.com/agronholm/exceptiongroup")
- (synopsis "PEP 654 backport from Python 3.11")
- (description "This is a backport of the @code{BaseExceptionGroup} and
-@code{ExceptionGroup} classes from Python 3.11.")
- (license license:expat)))
-
(define-public python-extension-helpers
(package
(name "python-extension-helpers")
- 303/361: gnu: python-ptyprocess: Update to 0.7.0., (continued)
- 303/361: gnu: python-ptyprocess: Update to 0.7.0., guix-commits, 2024/11/22
- 311/361: gnu: python-coverage: Update to 7.6.7., guix-commits, 2024/11/22
- 315/361: gnu: python-cffi: Update to 1.17.1., guix-commits, 2024/11/22
- 319/361: gnu: python-jedi: Update to 0.19.2., guix-commits, 2024/11/22
- 340/361: gnu: python-werkzeug: Update to 3.1.3., guix-commits, 2024/11/22
- 356/361: gnu: python-apispec-webframeworks: Update to 1.2.0., guix-commits, 2024/11/22
- 361/361: gnu: python-pydantic: Update to 1.10.19., guix-commits, 2024/11/22
- 355/361: gnu: Remove python-flask-jwt., guix-commits, 2024/11/22
- 266/361: gnu: python-nose-exclude: Adjust iputs., guix-commits, 2024/11/22
- 292/361: gnu: Add python-rich-tables., guix-commits, 2024/11/22
- 298/361: gnu: python-exceptiongroup: Move to python-build.,
guix-commits <=
- 306/361: gnu: python-pytest-timeout: Update to 2.3.1., guix-commits, 2024/11/22
- 309/361: gnu: python-filelock: Update to 3.16.1., guix-commits, 2024/11/22
- 308/361: gnu: python-pytest-mock: Update to 3.14.0., guix-commits, 2024/11/22
- 310/361: gnu: python-pytest-xdist: Update to 3.6.1., guix-commits, 2024/11/22
- 314/361: gnu: python-openpyxl: Update to 3.1.5., guix-commits, 2024/11/22
- 322/361: gnu: python-execnet: Update to 2.1.1., guix-commits, 2024/11/22
- 325/361: gnu: python-trove-classifiers: Update to 2024.10.21.16., guix-commits, 2024/11/22
- 327/361: gnu: python-editables: Update to 0.5., guix-commits, 2024/11/22
- 341/361: gnu: python-pytest-localserver: Update to 0.9.0.post0., guix-commits, 2024/11/22
- 347/361: gnu: python-blinker: Update to 1.9.0., guix-commits, 2024/11/22