From patchwork Sun May 16 19:20:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Simon Streit X-Patchwork-Id: 29375 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2AB7227BC81; Sun, 16 May 2021 20:21:14 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED, URIBL_SBL,URIBL_SBL_A autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8DEEA27BC78 for ; Sun, 16 May 2021 20:21:13 +0100 (BST) Received: from localhost ([::1]:35560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liMK8-00050A-NY for patchwork@mira.cbaines.net; Sun, 16 May 2021 15:21:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35782) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liMJz-0004yM-QK for guix-patches@gnu.org; Sun, 16 May 2021 15:21:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39965) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1liMJy-0007e7-26 for guix-patches@gnu.org; Sun, 16 May 2021 15:21:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1liMJx-0006Im-UR for guix-patches@gnu.org; Sun, 16 May 2021 15:21:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48469] Add: mariadb-connector-python Resent-From: Simon Streit Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 16 May 2021 19:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48469 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 48469@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162119281224145 (code B ref -1); Sun, 16 May 2021 19:21:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 May 2021 19:20:12 +0000 Received: from localhost ([127.0.0.1]:51511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1liMJ9-0006HN-RY for submit@debbugs.gnu.org; Sun, 16 May 2021 15:20:12 -0400 Received: from lists.gnu.org ([209.51.188.17]:36582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1liMJ7-0006HC-CO for submit@debbugs.gnu.org; Sun, 16 May 2021 15:20:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35450) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liMJ5-0004SQ-I3 for guix-patches@gnu.org; Sun, 16 May 2021 15:20:08 -0400 Received: from smtprelay03.ispgateway.de ([80.67.18.15]:14254) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liMJ1-0006qT-HM for guix-patches@gnu.org; Sun, 16 May 2021 15:20:07 -0400 Received: from [91.40.243.34] (helo=milk) by smtprelay03.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1liMJ6-0005P6-9W; Sun, 16 May 2021 21:20:08 +0200 From: Simon Streit Gcc: nnfolder+archive:sent.2021-05 Date: Sun, 16 May 2021 21:20:41 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Df-Sender: bGlzdHNAbmV0cGFuaWMub3Jn Received-SPF: none client-ip=80.67.18.15; envelope-from=simon@netpanic.org; helo=smtprelay03.ispgateway.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches 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 From b76d2c42ce6a5d6060fef657718f594654176cbc Mon Sep 17 00:00:00 2001 From: Simon Streit 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 ;;; Copyright © 2021 Pjotr Prins ;;; Copyright © 2021 Bonface Munyoki Kilyungi +;;; Copyright © 2021 Simon Streit ;;; ;;; 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