From patchwork Sun Aug 2 13:50:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre Langlois X-Patchwork-Id: 23492 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 43A6E27BBE4; Sun, 2 Aug 2020 14:51:25 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id BCD4E27BBE3 for ; Sun, 2 Aug 2020 14:51:24 +0100 (BST) Received: from localhost ([::1]:34922 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k2EOa-0001rl-4y for patchwork@mira.cbaines.net; Sun, 02 Aug 2020 09:51:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49668) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k2EOE-0001rb-My for guix-patches@gnu.org; Sun, 02 Aug 2020 09:51:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58679) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k2EOE-0000Xk-Ds for guix-patches@gnu.org; Sun, 02 Aug 2020 09:51:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k2EOE-0006TB-D2 for guix-patches@gnu.org; Sun, 02 Aug 2020 09:51:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42608] fixup! Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 02 Aug 2020 13:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42608 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Oleg Pykhalov Cc: Pierre Langlois , 42608@debbugs.gnu.org Received: via spool by 42608-submit@debbugs.gnu.org id=B42608.159637622424826 (code B ref 42608); Sun, 02 Aug 2020 13:51:02 +0000 Received: (at 42608) by debbugs.gnu.org; 2 Aug 2020 13:50:24 +0000 Received: from localhost ([127.0.0.1]:41992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2ENb-0006SM-Ts for submit@debbugs.gnu.org; Sun, 02 Aug 2020 09:50:24 -0400 Received: from mout.gmx.net ([212.227.17.22]:49611) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2ENZ-0006S6-R8 for 42608@debbugs.gnu.org; Sun, 02 Aug 2020 09:50:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1596376215; bh=7MFlxXz/V8VsNvx6OUsyUF+CIbARljrEW+vFoUmcKXU=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:In-reply-to:Date; b=Drr7/INjWg2u82zGLEh3ArUuZIamPO3hEb+4Ang9XHMWfV6Cw/pUxlMDTTJPGPooF xTNZBVAmI44f5+RUgBHzq1p2G/Lqhqe/Kf931a80Bw7BaNf14k544kqZZdFMC7nvff 4cpE5anaqBb6/40CCLeHs+MMDK6VFDEB/nkbiE5M= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from e119807-lin ([82.69.64.142]) by mail.gmx.com (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MmDEm-1kSWed0N16-00iFSX; Sun, 02 Aug 2020 15:50:15 +0200 References: <87ft99ga58.fsf@gmx.com> <873655tcio.fsf@gmail.com> <87r1spnoy4.fsf@gmx.com> User-agent: mu4e 1.4.12; emacs 26.3 From: Pierre Langlois In-reply-to: <87r1spnoy4.fsf@gmx.com> Date: Sun, 02 Aug 2020 14:50:13 +0100 Message-ID: <87mu3dnomi.fsf@gmx.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:re4XPby97IOl+ZR1vX7mVHjvUHr9rt8oX2Fp8cCeIlONhfk9FGs 96tHkpoeMnYubVRCfWRNSKKTK2d0nqRXaoTpJ1ADo/8jeFg4Rf45B4clmdEd9GWwAP65/ZJ SK5/2bDtZos7PqWFGLs50KWtoVx9F5NBhS4Kjcfatb3ATyzDEHr/yrCKD9E/6UYP+JiE3J0 uMkdgMR4ASBL8mTwH1GEQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:5giolLeEOcY=:I+gp2YYYy+ddPB/cp/3ZXW NcejYyY5oRql9b/P88EO81N3nXhssyM2ni5U7DTn3vxyJ95LMQRIjnHm2Kh4PP/odQH2W4GiG 5hsLIx3MPkFDaEoU9SoKVViHtPFmy9aVfjghTuU+f3tRDQNQE6uUzoXv1lD2YLhyvXTVSBKz2 B76Etx0K3DxTFgjQZJ1rWH8FwzabsKh4P1JG3jw8YGVRRFNYQCZxISBPGO4vqxsx1yjkv8CTN 4f6cYODUtCXgzh2UBLBTcsE9l6ewE/aSe+mFi7zFpRjNfBSIRWBJ9BJ2kR9Hfr5JtAba1yLSS a/ivmgpeWGdl+pN/CP4BNfMZrrHI+0Hl7dqyMc915Ql/8vX0pUfcVUGepqxk27vusMGua0vzl +FcsB8YL7X1DH0U1QoucZNMv9hsb+vhUjyDgoUYP2GsDAH2w1Ig1Th2bR5sOiUU/YJYTUcLEL RhQ4B3N9qHDEgvm3u569gBD69/mq0XMucWpJ8L7Ak+MiCQ4UcKgW4QEw1os3SMPA1WGM6cA6W 7PZHBdQdF82Myo/S3yccHeH4hldh1KjkLAH3VAxlK6Xz+/RrRE5kp+rjO69ibNDDKhpiHTJQ4 xkNystZSVm8lnG6eJoXTO9NCkHlEz/gP8qyWHdYZXGnXPtoZbSm7DVVV9A1cj91Jf0D+VAlw3 Obwa1W8GC/WPxv5BC2/SfTZi9L9M2NNJlBEBNxNvbrYN9tQmZP6do9wWsNpwRyx/VY844MYLx xswGXMTJAjLEwkr59rTQGrDlFnxDuofY+DomqjmX+AKjFXXMOoqfR+60nI4WWM76ucHI+hYKs JHr3cKVSjL0hbkaUnASqV61P5B69n9oDkaiHqCw1U3+JEmg8z4a+KAUJjJqja5Gpw1IvZ87T7 FwK0BiFidyEpdO2WD1rIYs2J87tb4Bosj1UrrNZs4p5Cs6BqR6PtW9sZQwOSUnfqeH2T/unjm d/W+X4Y1BeH6fYErFxNH+BglsO6CYPS2NdSGGIrpXluPNKoGtcdcZwPJgrB/8xNCUXCgUD0dW 0ZbSjMJfB5Sst+QKDxY7Znm+sagE+ML7ureBHLG6ELDvSn6p9/WUVg2y1ouQynjcD0chraHz7 KJUp+TvCDRa4N4zwkI1KYGpT2deDZ9+c7NBk+0FkFGfi+WN7rNTOj8UWTD3aGBRJf3LqhH9C6 Oa1AeZLITZrtixeI9nDoAW/qKTzfCDJVoZIwZB74PABBkCs1ReFn4liTihrZUw4hBUGDtip1E iraUUMOCLqqVcALq/tTCOGd8//1nlOMkArSc+Fw== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Pierre Langlois writes: > Hi Oleg, thanks for taking a look! > > Oleg Pykhalov writes: > >> Hi, >> >> Could you take a look on running the test-suite inside >> emacsql-sqlite3-test.el file, please? > > Oh yes good idea! I hadn't noticed there were tests. > > > See attached patch, I copied the test invocation from > https://github.com/cireu/emacsql-sqlite3/blob/master/.github/workflows/main.yml#L40. > I've also removed the ".git" from the origin url, to make 'guix lint' > happy. Whoops, I forgot to run the indent-code.el script, see new patch which adds a couple of adjustments. I really need to setup emacs properly for scheme... :-) From ccf27c4094fca5bed2ce29e5e129b8a4d86f2dec Mon Sep 17 00:00:00 2001 From: Pierre Langlois Date: Thu, 30 Jul 2020 00:20:43 +0100 Subject: [PATCH] gnu: Add emacs-emacsql-sqlite3. * gnu/packages/emacs-xyz.scm (emacs-emacsql-sqlite3): New variable. --- gnu/packages/emacs-xyz.scm | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index a90d789d7a..b8807528e0 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -13572,6 +13572,45 @@ has no concept of @code{TEXT} values; it's all just Lisp objects. The Lisp object @code{nil} corresponds 1:1 with @code{NULL} in the database.") (license license:gpl3+))) +(define-public emacs-emacsql-sqlite3 + (package + (name "emacs-emacsql-sqlite3") + (version "1.0.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cireu/emacsql-sqlite3") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1yy9y27rckm776jnl2rh1fz3bh09690xwzq7102vlw7xkb9s7jhj")))) + (build-system emacs-build-system) + (native-inputs + `(("ert-runner" ,emacs-ert-runner))) + (inputs + `(("sqlite" ,sqlite))) + (propagated-inputs + `(("emacs-emacsql" ,emacs-emacsql))) + (arguments + `(#:tests? #t + #:test-command '("emacs" "-Q" "--batch" "-L" "." + "--load" "emacsql-sqlite3-test.el" + "-f" "ert-run-tests-batch-and-exit") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'embed-path-to-sqlite3 + (lambda _ + (substitute* "emacsql-sqlite3.el" + (("\\(executable-find \"sqlite3\"\\)") + (string-append "\"" (which "sqlite3") "\""))) + #t))))) + (home-page "https://github.com/cireu/emacsql-sqlite3") + (synopsis "EmacSQL backend for SQLite") + (description "This is yet another EmacSQL backend for SQLite which uses +official @command{sqlite3} executable to access SQL database.") + (license license:gpl3+))) + (define-public emacs-closql ;; Take a commit newer than 1.0.0 release because of Emacs upgrade to 26.3. (let ((commit "70b98dbae53611d10a461d9b4a6f71086910dcef")) -- 2.28.0