mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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
This commit is contained in:
parent
1b577b8734
commit
c36cc98365
2 changed files with 44 additions and 43 deletions
|
@ -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.")
|
reflected in the package visible to Python, without needing a reinstall.")
|
||||||
(license license:expat)))
|
(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
|
(define-public python-hatchling
|
||||||
(package
|
(package
|
||||||
(name "python-hatchling")
|
(name "python-hatchling")
|
||||||
|
|
|
@ -5316,49 +5316,6 @@ user configuration files. It does not have support for serializing into YAML
|
||||||
and is not compatible with JSON.")
|
and is not compatible with JSON.")
|
||||||
(license license:expat)))
|
(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
|
(define-public python-extension-helpers
|
||||||
(package
|
(package
|
||||||
(name "python-extension-helpers")
|
(name "python-extension-helpers")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue