unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#57428] [PATCH] gnu: python-apsw: Update to 3.39.2.0.
@ 2022-08-26 14:28 Hilton Chain via Guix-patches via
  2022-08-26 21:52 ` bug#57428: " Marius Bakke
  0 siblings, 1 reply; 2+ messages in thread
From: Hilton Chain via Guix-patches via @ 2022-08-26 14:28 UTC (permalink / raw)
  To: 57428

From 96d4d8747230769d48c66ea37a467e8e08e68ee0 Mon Sep 17 00:00:00 2001
From: Hilton Chain <hako@ultrarare.space>
Date: Fri, 26 Aug 2022 22:08:54 +0800
Subject: [PATCH] gnu: python-apsw: Update to 3.39.2.0.

* gnu/packages/databases.scm (python-apsw): Update to 3.39.2.0.
[source]: Change to git-fetch.
[inputs]: Replace sqlite with sqlite-next.
[arguments]: Remove custom check phase.
Some styling adjustments as well.
---
 gnu/packages/databases.scm | 60 +++++++++++++++++---------------------
 1 file changed, 27 insertions(+), 33 deletions(-)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 82a3f22b7c..dd8ed50371 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -3568,44 +3568,38 @@ (define-public python-pickleshare
 (define-public python-apsw
   (package
     (name "python-apsw")
-    (version "3.36.0-r1")
+    (version "3.39.2.0")
     (source
-      (origin
-        (method url-fetch)
-        (uri (string-append "https://github.com/rogerbinns/apsw/releases"
-                            "/download/" version "/apsw-" version ".zip"))
-        (sha256
-          (base32
-           "0w8q73147hv77dlpqrx6h1gx03acc8xqhvdpfp6vkffdm0wmqd8p"))))
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/rogerbinns/apsw")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0q7fnk8n3m5mpjzh6xyhj409k8sacdbjsfis98my9c50fdn5sr7y"))))
     (build-system python-build-system)
-    (native-inputs
-     (list unzip))
-    (inputs
-     (list sqlite))
+    (native-inputs (list unzip))
+    (inputs (list sqlite-next))         ;SQLite 3.39 required.
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (replace 'build
-           (lambda _
-             (invoke "python" "setup.py" "build" "--enable-all-extensions"
-                     "--enable=load_extension")
-             #t))
-         (add-after 'build 'build-test-helper
-           (lambda _
-             (invoke "gcc" "-fPIC" "-shared" "-o" "./testextension.sqlext"
-                     "-I." "-Isqlite3" "src/testextension.c")
-             #t))
-         (replace 'check
-           (lambda* (#:key inputs outputs #:allow-other-keys)
-             (add-installed-pythonpath inputs outputs)
-             (invoke "python" "setup.py" "test")
-             #t)))))
+     (list #:phases
+           #~(modify-phases %standard-phases
+               (replace 'build
+                 (lambda _
+                   (invoke "python" "setup.py" "build" "--enable-all-extensions"
+                           "--enable=load_extension") #t))
+               (add-after 'build 'build-test-helper
+                 (lambda _
+                   (invoke "gcc" "-fPIC" "-shared" "-o" "./testextension.sqlext"
+                           "-I." "-Isqlite3" "src/testextension.c") #t)))))
     (home-page "https://github.com/rogerbinns/apsw/")
     (synopsis "Another Python SQLite Wrapper")
-    (description "APSW is a Python wrapper for the SQLite
-embedded relational database engine.  In contrast to other wrappers such as
-pysqlite it focuses on being a minimal layer over SQLite attempting just to
-translate the complete SQLite API into Python.")
+    (description
+     "APSW is a Python wrapper for the SQLite embedded relational database
+engine.  In contrast to other wrappers such as pysqlite it focuses on being a
+minimal layer over SQLite attempting just to translate the complete SQLite API
+into Python.")
     (license license:zlib)))
 
 (define-public python-aiosqlite

base-commit: de2f419618b9929cf65b477568f21bc77e218b70
-- 
2.37.2





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#57428: [PATCH] gnu: python-apsw: Update to 3.39.2.0.
  2022-08-26 14:28 [bug#57428] [PATCH] gnu: python-apsw: Update to 3.39.2.0 Hilton Chain via Guix-patches via
@ 2022-08-26 21:52 ` Marius Bakke
  0 siblings, 0 replies; 2+ messages in thread
From: Marius Bakke @ 2022-08-26 21:52 UTC (permalink / raw)
  To: Hilton Chain, 57428-done

[-- Attachment #1: Type: text/plain, Size: 523 bytes --]

Hilton Chain via Guix-patches via <guix-patches@gnu.org> skriver:

> From 96d4d8747230769d48c66ea37a467e8e08e68ee0 Mon Sep 17 00:00:00 2001
> From: Hilton Chain <hako@ultrarare.space>
> Date: Fri, 26 Aug 2022 22:08:54 +0800
> Subject: [PATCH] gnu: python-apsw: Update to 3.39.2.0.
>
> * gnu/packages/databases.scm (python-apsw): Update to 3.39.2.0.
> [source]: Change to git-fetch.
> [inputs]: Replace sqlite with sqlite-next.
> [arguments]: Remove custom check phase.
> Some styling adjustments as well.

Applied, thanks!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-08-26 21:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-26 14:28 [bug#57428] [PATCH] gnu: python-apsw: Update to 3.39.2.0 Hilton Chain via Guix-patches via
2022-08-26 21:52 ` bug#57428: " Marius Bakke

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).