From patchwork Sun Feb 6 16:09:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Pierre-Henry_Fr=C3=B6hring?= X-Patchwork-Id: 37026 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 E2B2227BBEA; Sun, 6 Feb 2022 16:11:32 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id AC80127BBE9 for ; Sun, 6 Feb 2022 16:11:32 +0000 (GMT) Received: from localhost ([::1]:54866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGk8R-0005TL-QS for patchwork@mira.cbaines.net; Sun, 06 Feb 2022 11:11:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50086) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGk71-0005QN-4H for guix-patches@gnu.org; Sun, 06 Feb 2022 11:10:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45778) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nGk70-0002fv-Pz for guix-patches@gnu.org; Sun, 06 Feb 2022 11:10:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nGk70-000424-IH for guix-patches@gnu.org; Sun, 06 Feb 2022 11:10:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53824] [PATCH] Add the python-databases package. Resent-From: Pierre-Henry =?utf-8?b?RnLDtmhyaW5n?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 06 Feb 2022 16:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53824 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53824@debbugs.gnu.org Cc: Pierre-Henry =?utf-8?b?RnLDtmhyaW5n?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164416379415477 (code B ref -1); Sun, 06 Feb 2022 16:10:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Feb 2022 16:09:54 +0000 Received: from localhost ([127.0.0.1]:39675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGk6s-00041Y-CB for submit@debbugs.gnu.org; Sun, 06 Feb 2022 11:09:54 -0500 Received: from lists.gnu.org ([209.51.188.17]:56692) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGk6r-00041R-E9 for submit@debbugs.gnu.org; Sun, 06 Feb 2022 11:09:53 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGk6r-0005Gv-Ae for guix-patches@gnu.org; Sun, 06 Feb 2022 11:09:53 -0500 Received: from [2001:4b98:dc4:8::223] (port=52915 helo=relay3-d.mail.gandi.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGk6p-0002cm-Fp for guix-patches@gnu.org; Sun, 06 Feb 2022 11:09:53 -0500 Received: (Authenticated sender: contact@phfrohring.com) by mail.gandi.net (Postfix) with ESMTPSA id 189E760003; Sun, 6 Feb 2022 16:09:45 +0000 (UTC) From: Pierre-Henry =?utf-8?b?RnLDtmhyaW5n?= Date: Sun, 6 Feb 2022 17:09:08 +0100 Message-Id: <20220206160907.1780570-1-contact@phfrohring.com> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2001:4b98:dc4:8::223 (failed) Received-SPF: pass client-ip=2001:4b98:dc4:8::223; envelope-from=contact@phfrohring.com; helo=relay3-d.mail.gandi.net X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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 --- gnu/packages/python-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 7c1b5e8ed3..7049ce61fa 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -28931,3 +28931,31 @@ (define-public python-types-dataclasses "This packages provides a collection of library stubs for Python, with static types.") (license license:asl2.0))) + +(define-public python-databases + (package + (name "python-databases") + (version "0.5.5") + (source (origin + (method url-fetch) + (uri (pypi-uri "databases" version)) + (sha256 + (base32 + "0dzb998kg35xmd50ih168320vih2w3ich798r8fc4lf9q4bb1ih2")))) + (build-system python-build-system) + (propagated-inputs (list python-aiocontextvars python-sqlalchemy)) + (native-inputs (list python-aiosqlite python-asyncmy python-aiomysql + python-asyncpg python-aiopg)) + (home-page "https://github.com/encode/databases") + (synopsis "Async database support for Python") + (description + "Databases gives you simple asyncio support for a +range of databases. + +It allows you to make queries using the SQLAlchemy Core expression language, +and provides support for PostgreSQL, MySQL, and SQLite. + +Databases is suitable for integrating against any async Web framework, +such as Starlette, Sanic, Responder, Quart, aiohttp, Tornado, or +FastAPI.") + (license license:bsd-3)))