* [bug#48469] Add: mariadb-connector-python
@ 2021-05-16 19:20 Simon Streit
0 siblings, 0 replies; only message in thread
From: Simon Streit @ 2021-05-16 19:20 UTC (permalink / raw)
To: 48469
[-- Attachment #1: Type: text/plain, Size: 544 bytes --]
Hello,
please find attached a patch to add mariadb-connector-python.
Please note, that although this package uses the python build system,
and is available in pypi, the package follows the naming convention that
closely resembles its sister package `mariadb-connector-c', which it
also depends on.
I think it might be better to adapt the naming scheme to avoid any
confusions.
I also checked the licensing too. Apparently the source code reads
LGPLv2.1, while the pypi summary page says it is LGPLv2+. So I kept it
at v2.1.
Cheers
Simon
[-- Attachment #2: 0001-gnu-Add-mariadb-connector-python.patch --]
[-- Type: text/x-patch, Size: 2133 bytes --]
From b76d2c42ce6a5d6060fef657718f594654176cbc Mon Sep 17 00:00:00 2001
From: Simon Streit <simon@netpanic.org>
Date: Sun, 16 May 2021 19:53:09 +0200
Subject: [PATCH] gnu: Add: mariadb-connector-python.
* gnu/packages/databases.scm (mariadb-connector-python): New variable.
---
gnu/packages/databases.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 8907c40166..cee2354f36 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -51,6 +51,7 @@
;;; Copyright © 2021 David Larsson <david.larsson@selfhosted.xyz>
;;; Copyright © 2021 Pjotr Prins <pjotr.guix@thebird.nl>
;;; Copyright © 2021 Bonface Munyoki Kilyungi <me@bonfacemunyoki.com>
+;;; Copyright © 2021 Simon Streit <simon@netpanic.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -3946,3 +3947,28 @@ PostreSQL, SQLite, ODBC and MySQL.")
"FreeTDS is an implementation of the Tabular DataStream protocol, used for
connecting to MS SQL and Sybase servers over TCP/IP.")
(license license:lgpl2.0+)))
+
+(define-public mariadb-connector-python
+ (package
+ (name "mariadb-connector-python")
+ (version "1.0.6")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "mariadb" version))
+ (sha256
+ (base32
+ "06vy4pdw5ls0d2jkffcb010fjzd544lhmhqmgamaa8lffkq95dmf"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("mariadb-connector-c" ,mariadb-connector-c)))
+ (inputs
+ `(("mariadb" ,mariadb "dev")))
+ (home-page
+ "https://www.github.com/mariadb-corporation/mariadb-connector-python")
+ (synopsis "Client library to connect to MariaDB or MySQL databases for Python")
+ (description "MariaDB Connector/Python enables python programs to
+access MariaDB and MySQL databases, using an API which is compliant
+with the Python DB API 2.0 (PEP-249). It is written in C and uses
+MariaDB Connector/C client library for client server communication.")
+ (license license:lgpl2.1)))
--
2.31.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-16 19:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-16 19:20 [bug#48469] Add: mariadb-connector-python Simon Streit
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).