GNU bug report logs -
#32055
[PATCH 0/2] Add sqlcrush.
Previous Next
Reported by: Tobias Geerinckx-Rice <me <at> tobias.gr>
Date: Wed, 4 Jul 2018 21:10:02 UTC
Severity: normal
Tags: patch
Done: Tobias Geerinckx-Rice <me <at> tobias.gr>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32055 in the body.
You can then email your comments to 32055 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#32055
; Package
guix-patches
.
(Wed, 04 Jul 2018 21:10:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Tobias Geerinckx-Rice <me <at> tobias.gr>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Wed, 04 Jul 2018 21:10:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Guix,
Basically: ttyMyAdmin.
Tested only by poking around in an SQLite database (my reason for
packaging this).
Kind regards,
T G-R
Information forwarded
to
guix-patches <at> gnu.org
:
bug#32055
; Package
guix-patches
.
(Wed, 04 Jul 2018 21:16:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 32055 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/databases.scm (python-pymysql, python2-pymysql): New
public variables.
---
gnu/packages/databases.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 0f1e47f48..7357dba81 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -84,6 +84,7 @@
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages popt)
#:use-module (gnu packages python)
+ #:use-module (gnu packages python-crypto)
#:use-module (gnu packages rdf)
#:use-module (gnu packages readline)
#:use-module (gnu packages ruby)
@@ -759,6 +760,34 @@ pictures, sounds, or video.")
(base32
"0w7bwf19wbdd3jjbjv03cnx56qka4801srcbsayk9v792awv7zga"))))))
+(define-public python-pymysql
+ (package
+ (name "python-pymysql")
+ (version "0.9.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "PyMySQL" version))
+ (sha256
+ (base32
+ "0gvi63f1zq1bbd30x28kqyx351hal1yc323ckp0mihainb5n1iwy"))))
+ (build-system python-build-system)
+ (native-inputs
+ `(("python-unittest2" ,python-unittest2)))
+ (inputs
+ `(("python-cryptography" ,python-cryptography)))
+ (arguments
+ `(#:tests? #f)) ; tests expect a running MySQL
+ (home-page "https://github.com/PyMySQL/PyMySQL/")
+ (synopsis "Pure-Python MySQL Driver")
+ (description
+ "PyMySQL is a pure-Python MySQL client library, based on PEP 249.
+Most public APIs are compatible with @command{mysqlclient} and MySQLdb.")
+ (license license:expat)))
+
+(define-public python2-pymysql
+ (package-with-python2 python-pymysql))
+
(define-public qdbm
(package
(name "qdbm")
--
2.16.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#32055
; Package
guix-patches
.
(Wed, 04 Jul 2018 21:16:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 32055 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/databases.smc (sqlcrush): New public variable.
---
gnu/packages/databases.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 7357dba81..e01349c52 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -1034,6 +1034,36 @@ for example from a shell script.")
;; others (like sparql-query.c) contain a GPLv2+ license header.
(license (list license:gpl3+))))
+(define-public sqlcrush
+ (let ((commit "b5f6868f189566a26eecc78d0f0659813c1aa98a")
+ (revision "1"))
+ (package
+ (name "sqlcrush")
+ (version (git-version "0.1.5" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/coffeeandscripts/sqlcrush.git")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0x3wy40r93p0jv3nbwj9a77wa4ff697d13r0wffmm7q9h3mzsww8"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-cryptography" ,python-cryptography)
+ ("python-psycopg2" ,python-psycopg2)
+ ("python-pymysql" ,python-pymysql)
+ ("python-sqlalchemy" ,python-sqlalchemy)))
+ (home-page "https://github.com/coffeeandscripts/sqlcrush")
+ (synopsis "Text console-based database viewer and editor")
+ (description
+ "SQLcrush lets you view and edit a database directly from the text
+console through an ncurses interface. You can explore each table's structure,
+browse and edit the contents, add and delete entries, all while tracking your
+changes.")
+ (license license:gpl3+)))) ; no headers, see README.md
+
(define-public sqlite
(package
(name "sqlite")
--
2.16.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#32055
; Package
guix-patches
.
(Thu, 12 Jul 2018 21:24:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 32055 <at> debbugs.gnu.org (full text, mbox):
Hello Tobias,
Tobias Geerinckx-Rice <me <at> tobias.gr> skribis:
> * gnu/packages/databases.scm (python-pymysql, python2-pymysql): New
> public variables.
[...]
> + (home-page "https://github.com/PyMySQL/PyMySQL/")
> + (synopsis "Pure-Python MySQL Driver")
Nitpick: "driver" (lowercase).
Otherwise LGTM, thanks!
Ludo’.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#32055
; Package
guix-patches
.
(Thu, 12 Jul 2018 21:25:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 32055 <at> debbugs.gnu.org (full text, mbox):
Tobias Geerinckx-Rice <me <at> tobias.gr> skribis:
> * gnu/packages/databases.smc (sqlcrush): New public variable.
[...]
> + (build-system python-build-system)
> + (propagated-inputs
> + `(("python-cryptography" ,python-cryptography)
> + ("python-psycopg2" ,python-psycopg2)
> + ("python-pymysql" ,python-pymysql)
> + ("python-sqlalchemy" ,python-sqlalchemy)))
> + (home-page "https://github.com/coffeeandscripts/sqlcrush")
> + (synopsis "Text console-based database viewer and editor")
If it’s an application rather than a library, then perhaps we don’t need
to propagate these?
Otherwise LGTM.
Thanks,
Ludo’.
Reply sent
to
Tobias Geerinckx-Rice <me <at> tobias.gr>
:
You have taken responsibility.
(Tue, 21 Aug 2018 22:54:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Tobias Geerinckx-Rice <me <at> tobias.gr>
:
bug acknowledged by developer.
(Tue, 21 Aug 2018 22:54:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 32055-done <at> debbugs.gnu.org (full text, mbox):
Ludo',
This got buried after the holdays. Thanks for the review!
Ludovic Courtès wrote:
> Tobias Geerinckx-Rice <me <at> tobias.gr> skribis:
[...]
>> + (propagated-inputs
>> + `(("python-cryptography" ,python-cryptography)
>> + ("python-psycopg2" ,python-psycopg2)
>> + ("python-pymysql" ,python-pymysql)
>> + ("python-sqlalchemy" ,python-sqlalchemy)))
[...]
> If it’s an application rather than a library, then perhaps we
> don’t need
> to propagate these?
Agreed.
>> + (synopsis "Pure-Python MySQL Driver")
>
> Nitpick: "driver" (lowercase).
>
> Otherwise LGTM, thanks!
Pushed with the suggested changes as 311f06c et al.
Kind regards,
T G-R
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 19 Sep 2018 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 years and 277 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.