From patchwork Sun Feb 6 14:38:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pierre-Henry_Fr=C3=B6hring?= X-Patchwork-Id: 37022 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 54D3D27BBEA; Sun, 6 Feb 2022 14:40:39 +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,URIBL_BLOCKED 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 1EB8927BBE9 for ; Sun, 6 Feb 2022 14:40:39 +0000 (GMT) Received: from localhost ([::1]:46898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGiiS-0000ZK-15 for patchwork@mira.cbaines.net; Sun, 06 Feb 2022 09:40:36 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGihv-0000Z9-Ej for guix-patches@gnu.org; Sun, 06 Feb 2022 09:40:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42948) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nGihu-0006R1-Jg for guix-patches@gnu.org; Sun, 06 Feb 2022 09:40:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nGihu-0000tl-BN for guix-patches@gnu.org; Sun, 06 Feb 2022 09:40:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53821] [PATCH] Add the python-psycopg2-binary 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 14:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53821 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53821@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.16441583533389 (code B ref -1); Sun, 06 Feb 2022 14:40:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Feb 2022 14:39:13 +0000 Received: from localhost ([127.0.0.1]:36845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGih7-0000sb-4Y for submit@debbugs.gnu.org; Sun, 06 Feb 2022 09:39:13 -0500 Received: from lists.gnu.org ([209.51.188.17]:48214) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGih4-0000sT-OM for submit@debbugs.gnu.org; Sun, 06 Feb 2022 09:39:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGih4-0008MV-IC for guix-patches@gnu.org; Sun, 06 Feb 2022 09:39:10 -0500 Received: from relay11.mail.gandi.net ([217.70.178.231]:41739) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGih0-0006LA-U3 for guix-patches@gnu.org; Sun, 06 Feb 2022 09:39:09 -0500 Received: (Authenticated sender: contact@phfrohring.com) by mail.gandi.net (Postfix) with ESMTPSA id DE70E100006; Sun, 6 Feb 2022 14:39:00 +0000 (UTC) From: Pierre-Henry =?utf-8?b?RnLDtmhyaW5n?= Date: Sun, 6 Feb 2022 15:38:14 +0100 Message-Id: <20220206143813.1701863-1-contact@phfrohring.com> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Received-SPF: pass client-ip=217.70.178.231; envelope-from=contact@phfrohring.com; helo=relay11.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 `(#:tests? #f)' because tests require a live PostegreSQL instance. --- gnu/packages/python-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 7c1b5e8ed3..a136de9990 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -28931,3 +28931,39 @@ (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-psycopg2-binary + (package + (name "python-psycopg2-binary") + (version "2.9.3") + (source (origin + (method url-fetch) + (uri (pypi-uri "psycopg2-binary" version)) + (sha256 + (base32 + "0kpaxg3lg5wg5ww5kxmzi2z2d7arsx13ci915d8a2pf17lqza7bn")))) + (build-system python-build-system) + (native-inputs (list postgresql)) + (arguments + '(#:tests? #f)) + (home-page "https://psycopg.org/") + (synopsis "Python-PostgreSQL Database Adapter") + (description + "Psycopg is the most popular PostgreSQL database +adapter for the Python programming language. Its main features are the +complete implementation of the Python DB API 2.0 specification and the +thread safety (several threads can share the same connection). It was +designed for heavily multi-threaded applications that create and +destroy lots of cursors and make a large number of concurrent +“INSERT”s or “UPDATE”s. + +Psycopg 2 is mostly implemented in C as a libpq wrapper, resulting in +being both efficient and secure. It features client-side and +server-side cursors, asynchronous communication and notifications, +“COPY TO/COPY FROM” support. Many Python types are supported +out-of-the-box and adapted to matching PostgreSQL data types; +adaptation can be extended and customized thanks to a flexible objects +adaptation system. + +Psycopg 2 is both Unicode and Python 3 friendly.") + (license license:lgpl3+)))