[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
62/145: gnu: python-typing-extensions: Update to 4.0.1.
From: |
guix-commits |
Subject: |
62/145: gnu: python-typing-extensions: Update to 4.0.1. |
Date: |
Mon, 10 Jan 2022 11:44:09 -0500 (EST) |
apteryx pushed a commit to branch version-1.4.0
in repository guix.
commit af7b5cb5e873d2c7e5b9104f81e276a46a361203
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Dec 20 11:12:11 2021 -0500
gnu: python-typing-extensions: Update to 4.0.1.
* gnu/packages/python-xyz.scm (python-typing-extensions): Update to 4.0.1.
[origin]: Use git-fetch.
[tests?]: Disable.
[phases]{unpack, build, install}: New phases.
[native-inputs]: Add python-pypa-build, python-flit-core.
[home-page]: Shorten URL.
---
gnu/packages/python-xyz.scm | 44 ++++++++++++++++++++++++++++++++++----------
1 file changed, 34 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index cb4cc7e8b1..64a3a6bdcc 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20896,17 +20896,41 @@ and other tools.")
(define-public python-typing-extensions
(package
(name "python-typing-extensions")
- (version "3.7.4.3")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "typing_extensions" version))
- (sha256
- (base32
- "0356ljrrplm917dqgpn8wjkw6j3mpp916gwxas7jhc3xc4xhgm4r"))))
+ (version "4.0.1")
+ (source (origin
+ ;; The test script is missing from the PyPI archive.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/python/typing")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0a35fh5wk9s538x0w3dz95y0avnhd2srzyv9s1a372711n8hdl4p"))))
(build-system python-build-system)
- (home-page
-
"https://github.com/python/typing/blob/master/typing_extensions/README.rst")
+ (arguments
+ (list
+ #:tests? #f ;requires Python's test module, not available in Guix
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'enter-source-directory
+ (lambda _
+ (chdir "typing_extensions")))
+ ;; XXX: PEP 517 manual build copied from python-isort.
+ (replace 'build
+ (lambda _
+ (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "python" "src/test_typing_extensions.py"))))
+ (replace 'install
+ (lambda _
+ (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-flit-core))
+ (home-page "https://github.com/python/typing/typing_extensions")
(synopsis "Experimental type hints for Python")
(description
"The typing_extensions module contains additional @code{typing} hints not
- 27/145: gnu: python-nose: Fix build., (continued)
- 27/145: gnu: python-nose: Fix build., guix-commits, 2022/01/10
- 21/145: gnu: llvm-12: Use quasiquote, addressing TODO., guix-commits, 2022/01/10
- 37/145: gnu: shadow: Update to 4.9., guix-commits, 2022/01/10
- 51/145: gnu: gtk: Update to 4.4.1., guix-commits, 2022/01/10
- 72/145: gnu: Add zopfli., guix-commits, 2022/01/10
- 70/145: gnu: Add python-pyftpdlib., guix-commits, 2022/01/10
- 48/145: gnu: atkmm-2.28: Do not propagate two variants of glibmm., guix-commits, 2022/01/10
- 71/145: gnu: Add python-fs., guix-commits, 2022/01/10
- 57/145: gnu: python-typed-ast: Update to 1.5.1., guix-commits, 2022/01/10
- 135/145: gnu: Add rust-assert-cmd-2., guix-commits, 2022/01/10
- 62/145: gnu: python-typing-extensions: Update to 4.0.1.,
guix-commits <=
- 112/145: gnu: glibmm: Update to 2.70.0 and apply guix style., guix-commits, 2022/01/10
- 63/145: gnu: python-astroid: Update to 2.9.0., guix-commits, 2022/01/10
- 65/145: gnu: python-testpath: Update to 0.5.0 and enable tests., guix-commits, 2022/01/10
- 89/145: gnu: igraph: Update to 0.9.5., guix-commits, 2022/01/10
- 90/145: gnu: python-igraph: Update to 0.9.8., guix-commits, 2022/01/10
- 69/145: gnu: Add python-pysendfile., guix-commits, 2022/01/10
- 123/145: gnu: python-pandas: Update to 1.3.5., guix-commits, 2022/01/10
- 126/145: gnu: gnome-calculator: Add python to native inputs., guix-commits, 2022/01/10
- 94/145: gnu: clipper: Remove obsolete phase., guix-commits, 2022/01/10
- 86/145: gnu: bcftools: Update to 1.14., guix-commits, 2022/01/10