From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4MVBLLO9FGTVQAEASxT56A (envelope-from ) for ; Fri, 17 Mar 2023 20:21:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iGZkK7O9FGQZUgAAG6o9tA (envelope-from ) for ; Fri, 17 Mar 2023 20:21:23 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3848A409BC for ; Fri, 17 Mar 2023 20:21:23 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=caUdMC9T; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679080883; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=v1hhVVVMLvURcWd9VZfksHXLwNiQpzdjaR/I7m8ez0c=; b=G3UX0z+ZG6L2ujEjpceqdn1cKLy3bOkfz6JmpUWzMiPh4zz8vv9cJZ6WDkpri5FLOxWP+m uH+6TGSMJ4qvDaG7T/4V7REZPhZ8VsXEvvVYTN5oCsSsGANCt8/RWt/ylSiUMxcxu6hjLD yUSTTWVSrlp7sdq8Wndx5OSdB+O5S8ne7PClk/EJC+j1XZggkrnGoiburJ0+aadLZyISog 86WpXS17PcfpVO/M/MR1vHA5WXdZK/pX5rWvlmRr/EVdVKL5DgPXFJ5xdK7p3XVSRUYk2E nkD5mbnOH5SjK/2Hp0fDM4JCZRdmF2lcaqELeBPtodDg2HrT+6mO+GepY+OO+w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=caUdMC9T; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679080883; a=rsa-sha256; cv=none; b=rj+XtY+8edtajywwaRwYsjzsf8NmR1OHxBDvHF6CIMbf0697BcRgMTsheHn6mJOwLp36hD N0+jmxogrnnTC0+aqBNGHrAIhdHJ/L7/mb848dliDOiCVEsiDem6OQnXIaAiaoisU3sY+8 jUAjC7paM0Md4oCX9ElpljWjET0/nrEKMoS4Cr9LjW4gpG3yQCVwSUSh6T+L+Zy3PzIbEn mI/jclMNO54rSPyl5Hk6xZ6Ci9z6Q8iTwZO7B4i08lZ7T7HGLVyvgSZkImonLURkZQcOoQ v5iKxCk133FpMJdmz/GFEeXNXya+zXqcdEwTSrAY5nT+Q2jqlx/qn2AOUzr+RQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pdFdS-0005bC-Gw; Fri, 17 Mar 2023 15:21:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pdFdP-0005a5-Lc for guix-patches@gnu.org; Fri, 17 Mar 2023 15:21:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pdFdP-0004Ej-Cu for guix-patches@gnu.org; Fri, 17 Mar 2023 15:21:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pdFdP-00042U-7h for guix-patches@gnu.org; Fri, 17 Mar 2023 15:21:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#60838] [PATCH v2 3/7] gnu: Add python-sqlite-utils. Resent-From: Felix Gruber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 17 Mar 2023 19:21:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60838@debbugs.gnu.org Cc: Felix Gruber Received: via spool by 60838-submit@debbugs.gnu.org id=B60838.167908083615399 (code B ref 60838); Fri, 17 Mar 2023 19:21:03 +0000 Received: (at 60838) by debbugs.gnu.org; 17 Mar 2023 19:20:36 +0000 Received: from localhost ([127.0.0.1]:45675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdFcx-00040I-N6 for submit@debbugs.gnu.org; Fri, 17 Mar 2023 15:20:36 -0400 Received: from mout02.posteo.de ([185.67.36.66]:33577) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdFcw-0003zq-7e for 60838@debbugs.gnu.org; Fri, 17 Mar 2023 15:20:34 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B4D3B2406D7 for <60838@debbugs.gnu.org>; Fri, 17 Mar 2023 20:20:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1679080828; bh=qT3CPbZTQwBZm+dLeounM9anr4IngZ/pZrTo/QRA/LQ=; h=From:To:Cc:Subject:Date:From; b=caUdMC9ToX/CSiFjM1aHn3W+8WdDmPp5j3Yh8a0xX3DsMecy1zqdQN0YC7gnBAtEU dQAwulaaTbborUJVW7VZojYffrQmLV/0DusxnATsMNe8R/mFy31vFhojZ9I6zHBf1U 6XTake7WFHNSz0pmPVwhv44giMd3fJmM5m38QemAgxs7aPzFUB4a/yhxS/tZjnZnAE 38B0fbsalw2nkaVDLjGDRf1hoOeexQ+8Khk3pJQX6UtZwmJjv0sul/ri5CxvEyh3Z+ 1OD5WCrreg3+4GiG0w4QdrsSdCooaMAMrT/Q2IwSfrMLaLY23XHhvDWHkw2717S48k vTPYoeY5qdZ/g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PdYqw1TSKz9rxT; Fri, 17 Mar 2023 20:20:28 +0100 (CET) From: Felix Gruber Date: Fri, 17 Mar 2023 19:19:17 +0000 Message-Id: <9e1061808f9f7d509168063b67ff119f42c149f3.1679080713.git.felgru@posteo.net> In-Reply-To: References: <20230115214753.25034-1-felgru@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: X-Migadu-Queue-Id: 3848A409BC X-Spam-Score: -1.45 X-Migadu-Spam-Score: -1.45 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: Nhk9dIezjSE1 * gnu/packages/databases.scm (python-sqlite-utils): New variable. --- gnu/packages/databases.scm | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 580359145e..d9ea2bba34 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -3573,6 +3573,45 @@ (define-public python-sqlite-fts4 documents indexed using the SQLite's FTS4 full text search extension.") (license license:asl2.0))) +(define-public python-sqlite-utils + (package + (name "python-sqlite-utils") + (version "3.30") + (source (origin + (method url-fetch) + (uri (pypi-uri "sqlite-utils" version)) + (sha256 + (base32 + "0cvfbyvkh7gjh3ws3gj2yhjhr459nsz6c5vrkxjlad7isl95q01h")))) + (build-system python-build-system) + (arguments + '(#:tests? #f)) ; No tests provided in pypi package. + (propagated-inputs (list python-click python-click-default-group-wheel + python-dateutil python-sqlite-fts4 + python-tabulate)) + (home-page "https://github.com/simonw/sqlite-utils") + (synopsis + "CLI tool and Python utility functions for manipulating SQLite databases") + (description + "This package provides a CLI tool and Python utility functions for +manipulating SQLite databases. + +It's main features are: +@itemize +@item Pipe JSON (or CSV or TSV) directly into a new SQLite database file, + automatically creating a table with the appropriate schema. +@item Run in-memory SQL queries, including joins, directly against data + in CSV, TSV or JSON files and view the results. +@item Configure SQLite full-text search against your database tables and + run search queries against them, ordered by relevance. +@item Run transformations against your tables to make schema changes + that SQLite ALTER TABLE does not directly support, such as + changing the type of a column. +@item Extract columns into separate tables to better normalize your + existing data. +@end itemize") + (license license:asl2.0))) + (define-public python-pickleshare (package (name "python-pickleshare") -- 2.39.2