From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mHZ9KKpwoWAyPgAAgWs5BA (envelope-from ) for ; Sun, 16 May 2021 21:21:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 2HYyJKpwoWD8HwAA1q6Kng (envelope-from ) for ; Sun, 16 May 2021 19:21:14 +0000 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 56E7D1795D for ; Sun, 16 May 2021 21:21:14 +0200 (CEST) Received: from localhost ([::1]:35560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liMK9-00050A-GD for larch@yhetil.org; Sun, 16 May 2021 15:21:13 -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 Content-Type: multipart/mixed; boundary="=-=-=" 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621192874; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post; bh=WAWM5RzRxCMp66bly8wA1fJ9C7LJrA23UnlJ9IgV0x0=; b=uh2L4739vw992lekXbPks2eQa6wqKk8s9Ed+kueaCAIAsf1RntYJwaJLScMIxkTsf61y8k 4SLx7yKMtwrMO6tKVB7kA5LXJWwchue27hlUZYlVPDFYqE4LxO32aIfgGXiuVxJc/rInWE 2ElrsH1cDta988Ru43lNkkgVm//qP5cnV73Cda6N2WxSzRTZK27v2rQdGU+Fs03tXELeDQ KBO+TxRRt7fpkOq6nz0wQ+2UWUxtp/6S/a+So0kC61Gqn58rUA855yJqNSn+kKjMkEk6aI md3bXi94Q86aG8QkLOZYUwa/O1lktwo3K14Q6gSgw/KDZ+NFFBrBhg9WjFnyig== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621192874; a=rsa-sha256; cv=none; b=QrsHDGaYYwRJ1aM3s2f1TcItEd5fl3Qi3RdX+70IFGHDa2K+tkqgWxcJXDKzF8/ZIMH9uI eTyXg6NOE9FxLJnQLvXlfNyOq/9RMQcwLiWfTRWCJMOOjRR8YMOo+FE1yUQzG+lEbe6p9s RKjupQ/pRI4ExETBG5mu8FtZtf96Ja5Fs2XDMBg7aedkbKkCbHnnBquJv34OnIjB8O9my/ AGBv15FE2MD+YFnX+Ui0CnuXC6kfAdF1hBB9Y+bTENiKB+8S1kKRuU2EVKKCYQr5vttuG5 kgNWUfKwuuwAbWCOl37r1PMe+srUHVLl9A9r/79aVKnJwLui3wiEK+zC2JcVqg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.95 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 56E7D1795D X-Spam-Score: -0.95 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1uVNxKJJTADO --=-=-= Content-Type: text/plain 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 --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-mariadb-connector-python.patch Content-Transfer-Encoding: quoted-printable >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 =C2=A9 2021 David Larsson ;;; Copyright =C2=A9 2021 Pjotr Prins ;;; Copyright =C2=A9 2021 Bonface Munyoki Kilyungi +;;; Copyright =C2=A9 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, use= d 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 --=-=-=--