summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-06-24 22:33:20 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-06-26 22:10:39 -0400
commitbc96a4323f4ae8b423f2946b79197f13de2a4dad (patch)
tree02008265afb9703fa21e462454b2c3c0e43ffcd8
parentgnu: Add python-flit-scm. (diff)
downloadguix-bc96a4323f4ae8b423f2946b79197f13de2a4dad.tar.gz
guix-bc96a4323f4ae8b423f2946b79197f13de2a4dad.tar.bz2
guix-bc96a4323f4ae8b423f2946b79197f13de2a4dad.tar.xz
gnu: Add python-exceptiongroup.
* gnu/packages/python-xyz.scm (python-exceptiongroup): New variable.
-rw-r--r--gnu/packages/python-xyz.scm42
1 files changed, 42 insertions, 0 deletions
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.")
2949 (inherit (package-with-python2 scons)) 2949 (inherit (package-with-python2 scons))
2950 (name "scons-python2"))) 2950 (name "scons-python2")))
2951 2951
2952(define-public python-exceptiongroup
2953 (package
2954 (name "python-exceptiongroup")
2955 (version "1.0.0rc8")
2956 (source (origin
2957 (method git-fetch)
2958 (uri (git-reference
2959 (url "https://github.com/agronholm/exceptiongroup")
2960 (commit version)))
2961 (file-name (git-file-name name version))
2962 (sha256
2963 (base32
2964 "0xsbpv22n51p6yvyvz231mf8zhbi1i88b4zmacaxxx31zrq5ifv4"))))
2965 (build-system python-build-system)
2966 (arguments
2967 (list
2968 #:phases
2969 #~(modify-phases %standard-phases
2970 ;; XXX: PEP 517 manual build/install procedures copied from
2971 ;; python-isort.
2972 (replace 'build
2973 (lambda _
2974 (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)
2975 ;; ZIP does not support timestamps before 1980.
2976 (setenv "SOURCE_DATE_EPOCH" "315532800")
2977 (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
2978 (replace 'install
2979 (lambda* (#:key outputs #:allow-other-keys)
2980 (let ((whl (car (find-files "dist" "\\.whl$"))))
2981 (invoke "pip" "--no-cache-dir" "--no-input"
2982 "install" "--no-deps" "--prefix" #$output whl))))
2983 (replace 'check
2984 (lambda* (#:key tests? #:allow-other-keys)
2985 (when tests?
2986 (invoke "pytest" "-vv" "tests")))))))
2987 (native-inputs (list python-flit-scm python-pypa-build python-pytest))
2988 (home-page "https://github.com/agronholm/exceptiongroup")
2989 (synopsis "PEP 654 backport from Python 3.11")
2990 (description "This is a backport of the @code{BaseExceptionGroup} and
2991@code{ExceptionGroup} classes from Python 3.11.")
2992 (license license:expat)))
2993
2952(define-public python-extension-helpers 2994(define-public python-extension-helpers
2953(package 2995(package
2954 (name "python-extension-helpers") 2996 (name "python-extension-helpers")