[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/22: gnu: python-apsw: Update to 3.39.2.1.
From: |
guix-commits |
Subject: |
02/22: gnu: python-apsw: Update to 3.39.2.1. |
Date: |
Wed, 7 Sep 2022 16:04:09 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 53c127c16defa1c0456dfc86df4cba5b267b0991
Author: Hilton Chain <hako@ultrarare.space>
AuthorDate: Tue Sep 6 20:30:45 2022 +0800
gnu: python-apsw: Update to 3.39.2.1.
* gnu/packages/databases.scm (python-apsw): Update to 3.39.2.1.
[source]: Change back to compressed release.
* gnu/packages/patches/python-apsw-3.39.2.1-test-fix.patch: New file.
* gnu/local.mk: Add patch.
Signed-off-by: Marius Bakke <marius@gnu.org>
---
gnu/local.mk | 1 +
gnu/packages/databases.scm | 18 +++++++++------
.../patches/python-apsw-3.39.2.1-test-fix.patch | 27 ++++++++++++++++++++++
3 files changed, 39 insertions(+), 7 deletions(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index e454189b8b..19102113c9 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1694,6 +1694,7 @@ dist_patch_DATA =
\
%D%/packages/patches/python-3-fix-tests.patch \
%D%/packages/patches/python-3-hurd-configure.patch \
%D%/packages/patches/python-3-no-static-lib.patch \
+ %D%/packages/patches/python-apsw-3.39.2.1-test-fix.patch \
%D%/packages/patches/python-aionotify-0.2.0-py3.8.patch \
%D%/packages/patches/python-argcomplete-1.11.1-fish31.patch \
%D%/packages/patches/python-cross-compile.patch \
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 7edf0fed2d..9540b61920 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -3568,18 +3568,22 @@ PickleShare.")
(define-public python-apsw
(package
(name "python-apsw")
- (version "3.39.2.0")
+ (version "3.39.2.1")
+ ;; The compressed release has fetching functionality disabled.
(source
(origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/rogerbinns/apsw")
- (commit version)))
- (file-name (git-file-name name version))
+ (method url-fetch)
+ (uri (string-append
+ "https://github.com/rogerbinns/apsw/releases/download/"
+ version "/apsw-" version ".zip"))
(sha256
(base32
- "0q7fnk8n3m5mpjzh6xyhj409k8sacdbjsfis98my9c50fdn5sr7y"))))
+ "06x3qgg71xz8l3kz8gz04wkfp5f6zfrg476a4mm1c5hikqyw6ykj"))
+ ;; Cherry-picked from upstream, remove when bumping to 3.39.3.
+ (patches
+ (search-patches "python-apsw-3.39.2.1-test-fix.patch"))))
(build-system python-build-system)
+ (native-inputs (list unzip))
(inputs (list sqlite-next)) ;SQLite 3.39 required.
(arguments
(list #:phases
diff --git a/gnu/packages/patches/python-apsw-3.39.2.1-test-fix.patch
b/gnu/packages/patches/python-apsw-3.39.2.1-test-fix.patch
new file mode 100644
index 0000000000..cc233e3ccd
--- /dev/null
+++ b/gnu/packages/patches/python-apsw-3.39.2.1-test-fix.patch
@@ -0,0 +1,27 @@
+From 1111f902075169bd0d96cdd10607ef8499f0fed5 Mon Sep 17 00:00:00 2001
+From: Roger Binns <rogerb@rogerbinns.com>
+Date: Mon, 5 Sep 2022 07:12:25 -0700
+Subject: [PATCH] Deal with mismatched SQLITE_ENABLE_COLUMN_METADATA
+
+Address #363
+---
+ apsw/tests.py | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletion(-)
+
+diff --git a/apsw/tests.py b/apsw/tests.py
+index b4a94d3..256ead0 100644
+--- a/apsw/tests.py
++++ b/apsw/tests.py
+@@ -772,8 +772,8 @@ class APSW(unittest.TestCase):
+ c.execute("drop table foo; create table foo (%s)" % (", ".join(["[%s]
%s" % (n, t) for n, t in cols]), ))
+ c.execute("insert into foo([x a space]) values(1)")
+ c.execute("create temp table two(fred banana); insert into two
values(7); create temp view three as select fred as [a space] from two")
+- has_full=any(o=="ENABLE_COLUMN_METADATA" or
o.startswith("ENABLE_COLUMN_METADATA=") for o in apsw.compile_options)
++ has_full=any(o=="ENABLE_COLUMN_METADATA" or
o.startswith("ENABLE_COLUMN_METADATA=") for o in apsw.compile_options) if
apsw.using_amalgamation else hasattr(c, "description_full")
+ for row in c.execute("select * from foo"):
+ self.assertEqual(cols, c.getdescription())
+ self.assertEqual(has_full, hasattr(c, "description_full"))
+
+base-commit: f628374c5857d940067ef26c9ea4e85a08a94f76
+--
+2.37.2
- branch master updated (9ec4233181 -> b45a44eaad), guix-commits, 2022/09/07
- 01/22: gnu: expect: Update home page., guix-commits, 2022/09/07
- 05/22: gnu: font-lxgw-wenkai-tc: Update to 0.921., guix-commits, 2022/09/07
- 06/22: gnu: python-pyvista: Update to 0.36.1., guix-commits, 2022/09/07
- 08/22: gnu: gnunet-scheme: Make scheme-gnunet.pdf reproducible., guix-commits, 2022/09/07
- 09/22: gnunet-scheme: Unbundle config.rpath., guix-commits, 2022/09/07
- 11/22: gnu: abseil-cpp: Update to 20220623.1., guix-commits, 2022/09/07
- 12/22: gnu: python-shiboken-2: Use G-expressions., guix-commits, 2022/09/07
- 03/22: gnu: sqlite-next: Update to 3.39.3., guix-commits, 2022/09/07
- 02/22: gnu: python-apsw: Update to 3.39.2.1.,
guix-commits <=
- 07/22: gnu: gnunet-scheme: Update to 0.3., guix-commits, 2022/09/07
- 13/22: gnu: Add python-shiboken-6, guix-commits, 2022/09/07
- 21/22: gnu: f3d: Update to 1.3.1., guix-commits, 2022/09/07
- 04/22: gnu: font-lxgw-wenkai: Update to 1.240., guix-commits, 2022/09/07
- 15/22: gnu: python-pyside-2: Clarify the package inputs., guix-commits, 2022/09/07
- 19/22: gnu: python-pyside-2-tools: Fix synopsis and description., guix-commits, 2022/09/07
- 10/22: gnu: ytfzf: Update to 2.4.1., guix-commits, 2022/09/07
- 14/22: gnu: python-pyside-2: Use G-expressions., guix-commits, 2022/09/07
- 18/22: gnu: python-pyside-2-tools: Use G-expressions., guix-commits, 2022/09/07
- 17/22: gnu: Add python-pyside-6., guix-commits, 2022/09/07