[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#60838] [PATCH v3 3/9] gnu: Add python-sqlite-utils.
From: |
Felix Gruber |
Subject: |
[bug#60838] [PATCH v3 3/9] gnu: Add python-sqlite-utils. |
Date: |
Sun, 26 Mar 2023 19:43:29 +0000 |
* gnu/packages/databases.scm (python-sqlite-utils): New variable.
---
gnu/packages/databases.scm | 46 ++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 7a5f62c0f4..87fa24038f 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -3580,6 +3580,52 @@ (define-public python-sqlite-fts4
text search extension.")
(license license:asl2.0)))
+(define-public python-sqlite-utils
+ (package
+ (name "python-sqlite-utils")
+ (version "3.30")
+ (source (origin
+ (method git-fetch) ; for tests
+ (uri (git-reference
+ (url "https://github.com/simonw/sqlite-utils")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1a58syvh5jp40vi5libsxkqy99z75kj4ckxqmylbhd342ppfy1wp"))))
+ (build-system pyproject-build-system)
+ (propagated-inputs (list python-click python-click-default-group-wheel
+ python-dateutil python-sqlite-fts4
+ python-tabulate))
+ (native-inputs (list python-pytest))
+ (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
- [bug#60838] [PATCH 0/8] Add datasette and python-sqlite-utils., Maxim Cournoyer, 2023/03/21
- [bug#60838] [PATCH v3 0/9] Add datasette and python-sqlite-utils., Felix Gruber, 2023/03/26
- [bug#60838] [PATCH v3 1/9] gnu: Add python-click-default-group-wheel., Felix Gruber, 2023/03/26
- [bug#60838] [PATCH v3 2/9] gnu: Add python-sqlite-fts4., Felix Gruber, 2023/03/26
- [bug#60838] [PATCH v3 3/9] gnu: Add python-sqlite-utils.,
Felix Gruber <=
- [bug#60838] [PATCH v3 4/9] gnu: Add python-asgi-lifespan., Felix Gruber, 2023/03/26
- [bug#60838] [PATCH v3 5/9] gnu: Add python-asgi-csrf., Felix Gruber, 2023/03/26
- [bug#60838] [PATCH v3 6/9] gnu: Add python-trustme-next., Felix Gruber, 2023/03/26
- [bug#60838] [PATCH v3 7/9] gnu: Add python-cogapp., Felix Gruber, 2023/03/26
- [bug#60838] [PATCH v3 8/9] gnu: python-pytest-7.1: Depend on python-pluggy-next., Felix Gruber, 2023/03/26
- [bug#60838] [PATCH v3 9/9] gnu: Add datasette., Felix Gruber, 2023/03/26