guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit 475a1bbc5e88bc88a10a56ef361e377b94a8bb9d
Author: Hugo Buddelmeijer <[email protected]>
AuthorDate: Sun Jul 12 13:07:34 2026 +0200

    gnu: python-psycopg: Fix build by updating to 3.3.4.
    
    * gnu/packages/databases.scm (python-psycopg): Update to 3.3.4.
    Replace tabs with spaces.
    [arguments]<#:test-flags>: Use gexps.
    [native-inputs]: Remove python-mypy and python-wheel.
    
    Relates-to: guix/guix!9885
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/databases.scm | 35 +++++++++++++++++------------------
 1 file changed, 17 insertions(+), 18 deletions(-)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index d3d3277e36..01a2df8c47 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -5020,25 +5020,26 @@ with the @code{psycopg} PostgreSQL driver.")
 (define-public python-psycopg
   (package
     (name "python-psycopg")
-    (version "3.2.4")
-    (source (origin
-              ;; Fetch from git because PyPI contains only cythonized sources.
-              (method git-fetch)
-              (uri (git-reference
-                    (url "https://github.com/psycopg/psycopg";)
-                    (commit version)))
-              (file-name (git-file-name name version))
-              (sha256
-               (base32
-                "0fb83fhaa3saapqv37901hlv017bj40q0dmkxd79aaq442sjf9w2"))))
+    (version "3.3.4")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/psycopg/psycopg";)
+              (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0kp9pig5hv2378zllmb6kmmabydmp98k8qacmm8098cspb0jqy44"))))
     (build-system pyproject-build-system)
     (arguments
      (list
       #:test-flags
-      '(list "-o" "asyncio_mode=auto"
-             ;; FIXME: Many of the typing tests are failing,
-             ;; conveniently tagged as slow...
-             "-k" "not slow" "..")
+      #~(list "-o" "asyncio_mode=auto"
+              ;; FIXME: Many of the typing tests are failing,
+              ;; conveniently tagged as slow...
+              "-k" "not slow"
+              ;; Tests are in parent directory due to the chdir.
+              "..")
       #:phases
       #~(modify-phases %standard-phases
           (add-before 'build 'change-directory
@@ -5063,18 +5064,16 @@ with the @code{psycopg} PostgreSQL driver.")
                           "-o" (string-append "-k " dbdir)
                           "-l" (string-append dbdir "/db.log")
                           "start")
-                 (invoke "psql" "-h" dbdir "-d" "postgres"
+                  (invoke "psql" "-h" dbdir "-d" "postgres"
                           "-c" "CREATE DATABASE nixbld;"))))))))
     (native-inputs
      (list python-cython
-           python-mypy
            python-psycopg-pool
            python-pytest
            python-pytest-asyncio
            python-anyio
            python-setuptools
            python-tenacity
-           python-wheel
            pproxy
            tzdata-for-tests))
     (inputs

Reply via email to