[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/08: gnu: Add python-exceptiongroup.
From: |
guix-commits |
Subject: |
03/08: gnu: Add python-exceptiongroup. |
Date: |
Sun, 26 Jun 2022 22:35:24 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit bc96a4323f4ae8b423f2946b79197f13de2a4dad
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Jun 24 22:33:20 2022 -0400
gnu: Add python-exceptiongroup.
* gnu/packages/python-xyz.scm (python-exceptiongroup): New variable.
---
gnu/packages/python-xyz.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b9d57bc6bb..9912b9150c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -2949,6 +2949,48 @@ software.")
(inherit (package-with-python2 scons))
(name "scons-python2")))
+(define-public python-exceptiongroup
+ (package
+ (name "python-exceptiongroup")
+ (version "1.0.0rc8")
+ (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
+ "0xsbpv22n51p6yvyvz231mf8zhbi1i88b4zmacaxxx31zrq5ifv4"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #: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 python-pytest))
+ (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")
- branch master updated (8d0e696243 -> 97766323bc), guix-commits, 2022/06/26
- 01/08: gnu: python-setuptools-scm: Move to (gnu packages python-build)., guix-commits, 2022/06/26
- 02/08: gnu: Add python-flit-scm., guix-commits, 2022/06/26
- 04/08: gnu: python-pymongo: Update to 4.1.1., guix-commits, 2022/06/26
- 03/08: gnu: Add python-exceptiongroup.,
guix-commits <=
- 05/08: gnu: python-immutables: Update to 0.18., guix-commits, 2022/06/26
- 07/08: gnu: Add python-statmake., guix-commits, 2022/06/26
- 06/08: gnu: Add python-cattrs., guix-commits, 2022/06/26
- 08/08: gnu: font-abattis-cantarell: Build from source., guix-commits, 2022/06/26