guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

10/28: gnu: Add python-psycopg-pool.


From: guix-commits
Subject: 10/28: gnu: Add python-psycopg-pool.
Date: Sat, 22 Jan 2022 04:23:44 -0500 (EST)

mbakke pushed a commit to branch master
in repository guix.

commit 84bcda58fc2d92f81088eb6f096609e209c94d4b
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Fri Jan 21 20:55:11 2022 +0100

    gnu: Add python-psycopg-pool.
    
    * gnu/packages/databases.scm (python-psycopg-pool): New variable.
---
 gnu/packages/databases.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 6ca1f814de..0e0007ef65 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -3439,6 +3439,33 @@ designed to be easy and intuitive to use.")
 2.0.")
     (license license:lgpl3+)))
 
+(define-public python-psycopg-pool
+  (package
+    (name "python-psycopg-pool")
+    ;; The connection pooling code is on a different release cadence
+    ;; from the driver code, so fetch the latest PyPI release.
+    (version "3.0.3")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "psycopg-pool" version))
+              (sha256
+               (base32
+                "1nx139pwzsgrz253zjxw2sf8h713s79h4cp1falmpc39j08djb46"))))
+    (build-system python-build-system)
+    (arguments
+     (list #:tests? #f                  ;run for psycopg below
+           #:phases
+           #~(modify-phases %standard-phases
+               ;; This module requires 'psycopg', however psycopg needs this
+               ;; for its tests.  Disable sanity check to break the cycle.
+               (delete 'sanity-check))))
+    (home-page "https://www.psycopg.org/";)
+    (synopsis "Connection pooler for psycopg")
+    (description
+     "This module provides connection pool implementations that can be used
+with the @code{psycopg} PostgreSQL driver.")
+    (license license:lgpl3+)))
+
 (define-public python-sadisplay
   (package
     (name "python-sadisplay")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]