[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/10: gnu: python-uqbar: Update to 0.5.9.
From: |
guix-commits |
Subject: |
06/10: gnu: python-uqbar: Update to 0.5.9. |
Date: |
Sun, 7 Jan 2024 11:02:14 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 51d25c771cfb7e26f5bd0d675893f68a8cbb92dc
Author: Troy Figiel <troy@troyfigiel.com>
AuthorDate: Fri Nov 17 21:48:02 2023 +0100
gnu: python-uqbar: Update to 0.5.9.
* gnu/packages/graphviz.scm (python-uqbar): Update to 0.5.9.
[source]: Add patch for Python 3.10 compatibility.
[arguments]: Remove outdated patch phase.
Change-Id: I81d83efd69bd07fe12790981c48a6e82297908f0
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/local.mk | 1 +
gnu/packages/graphviz.scm | 12 +++--------
gnu/packages/patches/python-uqbar-python3.10.patch | 23 ++++++++++++++++++++++
3 files changed, 27 insertions(+), 9 deletions(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index f804f4ef5b..3548b5eb3d 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1782,6 +1782,7 @@ dist_patch_DATA =
\
%D%/packages/patches/python-sphinx-prompt-docutils-0.19.patch \
%D%/packages/patches/python-telingo-fix-comparison.patch \
%D%/packages/patches/python-typeguard-python3.10.patch \
+ %D%/packages/patches/python-uqbar-python3.10.patch \
%D%/packages/patches/python-wxwidgets-type-errors.patch \
%D%/packages/patches/qtdeclarative-5-disable-qmlcache.patch \
%D%/packages/patches/qtdeclarative-disable-qmlcache.patch \
diff --git a/gnu/packages/graphviz.scm b/gnu/packages/graphviz.scm
index b91c365e3c..c5507e036c 100644
--- a/gnu/packages/graphviz.scm
+++ b/gnu/packages/graphviz.scm
@@ -195,7 +195,7 @@ structure and layout algorithms.")
(define-public python-uqbar
(package
(name "python-uqbar")
- (version "0.5.6")
+ (version "0.5.9")
(source
(origin
(method git-fetch)
@@ -205,18 +205,12 @@ structure and layout algorithms.")
(file-name (git-file-name name version))
(sha256
(base32
- "1ml3x2mf7nlnvrh9lari5yk0sz2mmg39jwsbjxnpzhnw4kcwpdrs"))))
+ "0c573nzpm51qgz2g296f8pw8ys0i3r6daynxk06zagk5l5fgw9ar"))
+ (patches (search-patches "python-uqbar-python3.10.patch"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
- (add-after 'unpack 'patch
- (lambda _
- (substitute* "setup.py"
- ;; Latest versions of sphink-rtd-theme require npm to build.
- (("sphinx-rtd-theme >= 0.5.0") "sphinx-rtd-theme >= 0.2.4")
- (("black") "black >= 19.10b0"))
- #t))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
diff --git a/gnu/packages/patches/python-uqbar-python3.10.patch
b/gnu/packages/patches/python-uqbar-python3.10.patch
new file mode 100644
index 0000000000..164f0c0c64
--- /dev/null
+++ b/gnu/packages/patches/python-uqbar-python3.10.patch
@@ -0,0 +1,23 @@
+Since Python 3.10 the output of a CLI program created with argparse
+uses "options" instead of "optional arguments". This behaviour breaks
+the tests in python-uqbar.
+
+--- a/tests/test_cli.py
++++ b/tests/test_cli.py
+@@ -84,7 +84,7 @@ def test_call_help():
+
+ speak like a cat
+
+- optional arguments:
++ options:
+ -h, --help show this help message and exit
+ --version show program's version number and exit
+ --loud be adamant
+@@ -101,6 +101,6 @@ def test_help():
+ """
+ usage: vox-aggregator [-h] [--version] {help,list,birds,mammals} ...
+
+- optional arguments:
++ options:
+ -h, --help show this help message and exit
+ --version show program's version number and exit
- branch master updated (b212e69346 -> 5f8a993aa8), guix-commits, 2024/01/07
- 01/10: gnu: shepherd: Update to 0.10.3., guix-commits, 2024/01/07
- 02/10: gnu: valgrind: Update to 3.22.0., guix-commits, 2024/01/07
- 03/10: gnu: go-golang-org-x-sys: Update to 0.8.0., guix-commits, 2024/01/07
- 04/10: gnu: Add emacs-color-identifiers-mode., guix-commits, 2024/01/07
- 09/10: gnu: mkvtoolnix: Update to 80.0., guix-commits, 2024/01/07
- 05/10: build-system/zig: Add cross-compilation support., guix-commits, 2024/01/07
- 08/10: gnu: libmatroska: Update to 1.7.1., guix-commits, 2024/01/07
- 10/10: gnu: mkvtoolnix: Remove input labels and use gexps., guix-commits, 2024/01/07
- 06/10: gnu: python-uqbar: Update to 0.5.9.,
guix-commits <=
- 07/10: gnu: Add emacs-adwaita-dark-theme, guix-commits, 2024/01/07