From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UNBIBdnd/2GpbAEAgWs5BA (envelope-from ) for ; Sun, 06 Feb 2022 15:40:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gPyoOdjd/2ElmgAAG6o9tA (envelope-from ) for ; Sun, 06 Feb 2022 15:40:24 +0100 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 845E822D2B for ; Sun, 6 Feb 2022 15:40:24 +0100 (CET) Received: from localhost ([::1]:46898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGiiF-0000ZK-P8 for larch@yhetil.org; Sun, 06 Feb 2022 09:40:23 -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?Q?Fr=C3=B6hring?= 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?Q?Fr=C3=B6hring?= 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?Q?Fr=C3=B6hring?= 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1644158424; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=Pf+1YRiXWUKW4KKqQkWUiH8+OQwY51bVm4YemREP5R4=; b=ji5Vmy9Ohx3KiL7t/IxLyBDUaEqdkip+Z3MsKbzi7aXjPSAGDz5568u+M/SwbDShk4nLyf uQshbsEnnoLTNUtIRZjUMEDZ2hoHRBQbhvAnABqEteog/h7NDFUCpjZR5QCbmUEEb0dj99 8eDbwdRC5fcEws5mPEFOWWGN7GFasgNS311f1W8bPE846zD2Ze+6G7GxVvGI2OOCDajjMt YrcfK1+FGFRCBddNFo2ZyOjn3ODbzvvQz1hREKmWwh31WCldloz9M7ucIU7WCRFKCWPEsM CoGmPM0Pl7VoXFvb8MafkuoDvtaSF+2lh2Q+AMVjG8I0vVQz3gKmOeoFTQMwAQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644158424; a=rsa-sha256; cv=none; b=ZGvAbI/m2UkYyR/wSiYdqBnVUtIl6OwqyDDJBnVcwXpXbO7E8yYn4rTevoA1C0+4H3dO1E VNKTuEVIIZJXiwUVxMdU5fP3LpL6ao5VkxpUSlQjWOz4IXuA0M4Owm316lQXyXbQ4qFKLU 7ppZCuzq3XQkGkbtTfx/40bIwepphjJklmxI5N/DFdK+3+lkvBPoOdg02mJ0cIc447n3F7 egq+Hrv4TWxio0ETeZfXDzT65pJnwF7muvNd+fx7pnwg5nIdggZY+GY3geYOxyuw2vdNVi j7d9lDwTTA8+npEpoxpfAdJNCzZtceezcs0ar3La/CtQl2yjFYXKYJmuthcvIw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.43 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 845E822D2B X-Spam-Score: -2.43 X-Migadu-Scanner: scn1.migadu.com X-TUID: 6sjZxWVXiQkt `(#: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+))) -- 2.34.0