From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UO00C8l1xGNRgAAAbAwnHQ (envelope-from ) for ; Sun, 15 Jan 2023 22:53:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gNM3C8l1xGN0WQAA9RJhRA (envelope-from ) for ; Sun, 15 Jan 2023 22:53:13 +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 E594DD7B4 for ; Sun, 15 Jan 2023 22:53:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHAw3-0006Qz-RF; Sun, 15 Jan 2023 16:53:03 -0500 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 1pHAw2-0006Qa-A3 for guix-patches@gnu.org; Sun, 15 Jan 2023 16:53:02 -0500 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 1pHAw2-0005fg-1r for guix-patches@gnu.org; Sun, 15 Jan 2023 16:53:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pHAw1-0004mn-Uj for guix-patches@gnu.org; Sun, 15 Jan 2023 16:53:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60838] [PATCH 3/8] gnu: Add python-sqlite-utils. Resent-From: Felix Gruber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 15 Jan 2023 21:53:01 +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.167381953118304 (code B ref 60838); Sun, 15 Jan 2023 21:53:01 +0000 Received: (at 60838) by debbugs.gnu.org; 15 Jan 2023 21:52:11 +0000 Received: from localhost ([127.0.0.1]:59694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHAvD-0004lA-2I for submit@debbugs.gnu.org; Sun, 15 Jan 2023 16:52:11 -0500 Received: from mout02.posteo.de ([185.67.36.66]:50927) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHAvA-0004kq-GF for 60838@debbugs.gnu.org; Sun, 15 Jan 2023 16:52:08 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id BD9F7240156 for <60838@debbugs.gnu.org>; Sun, 15 Jan 2023 22:52:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1673819522; bh=QHN+WFOB6QPm8He9BA536YYDvfo5j7GZDGK1K07gOBA=; h=From:To:Cc:Subject:Date:From; b=YPZnewFri7CRpVL/8xeRujwzXskiJmOoUa4hWVyC7zWtWXKW8to76qzf01nEXcQC/ 1+WYYrOFevPfA2LetP2m6ExFNEokcRp9fr+gGgQGEIJtiQzjTfh/W7tnXX/lRj2b3+ PWMe7ei06REJ8c2IeAHzLOLBP3TaDcfa5RTLh8ddONiRAN6/D8sZ26XfPRi0OOvd38 58LV2BQKz804vOLTIVJVAIulIbT73beBvBl3tiasSBuRAHbaYN1Sd6QUjOK4aghhm7 An59odm6NRWcyWMqBrnsx0dLfEO9NefaC2SIQ4SrRrBAnLYcnlMzYINnHxm7HfmFsk +L3Xa+wetrsRw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Nw84y1C5Wz9rxH; Sun, 15 Jan 2023 22:52:02 +0100 (CET) From: Felix Gruber Date: Sun, 15 Jan 2023 21:51:53 +0000 Message-Id: <20230115215153.25235-1-felgru@posteo.net> In-Reply-To: <20230115214753.25034-1-felgru@posteo.net> 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: 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673819592; a=rsa-sha256; cv=none; b=sQ79yqjCWmc+ZeyC8bHXVLQjw7OdBG7oERf5F8cC/MU4MJhitfIHUpELqYcXOtLU1Mm9wB 9TEiPDuTMT7u7aRsyFiDhoo3t5koSMmihHX18KktDjvSnuX4ExL1mYrlLdsUs09RT/Lzif ReXVj+m2yXm4u4L6w0T90UuWo/Hm+2LugqZ/CdF41iQJBhZ/UMgEMXEiQiY2ad2wynAvEO 0GV3XIWqbczYCvEGRlN/HCsXGUvR4gL4bkgqu9/8fU7+mPgBDbZ/a5vL9hhWfnZIRFZxG8 WJe3yGsTbPuri54OVmLarKtepV6FPAtVYTXH/x8oBffWoAzv25zg+5hOPCIpKA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=YPZnewFr; 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"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673819592; 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=tbPiThKyeTPORZPaCUPmrw+iXW9WvpH1IvDMqalInHQ=; b=HE/BaRisSDx3v+ngZk3pqynAyiTRQTBuNOzSSUc58s9NnHRSD8yaSGLrnRfzFZ8lXq+E2N nr9tzY6uwHkpU4oZczLlKVucnon+MG89Ep++ZK4gWMdOR1VGe2+Mo+X8aA1ur4kyZtYefa cEIBg0sBJPn0csg7aTeBm618860fgevuQZcJIIn+ClmL3YAZ+ZgAQpK1356+RigZEITf8l CvHyGYuLC746znKLT1vbNEolzG8mUC/Azhx1rEVQrzzoZU7osJJilqvhxPq0TR74hdJEMY ndKIzHlP8ORTO9xtCWE51ZDHgkTAts5Dw7KB/IxXiMZAxsa1D8xOIIVazUwd7Q== X-Migadu-Spam-Score: -0.72 X-Spam-Score: -0.72 X-Migadu-Queue-Id: E594DD7B4 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=YPZnewFr; 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"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) X-TUID: tHfv1tP/NLmF * 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 375d34b051..9831a3b761 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -3575,6 +3575,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.38.1