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

commit 184651f8882fad883aed116a3c7e98201eac7090
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Nov 12 11:34:02 2026 +0000

    gnu: python-sqlalchemy-utils: Update to 0.43.0.
    
    * gnu/packages/databases.scm (python-sqlalchemy-utils): Update to 0.43.0.
    [arguments] <test-flags>: Refresh the list of skipped tests.
    [propagated-inputs]: Remove python-six.
    [native-inputs]: Add python-psycopg.
    
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/databases.scm | 36 ++++++++++++++++++++++++------------
 1 file changed, 24 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index e2942a39d90..43c991df4c2 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -4638,26 +4638,37 @@ simple and Pythonic domain language.")
 (define-public python-sqlalchemy-utils
   (package
     (name "python-sqlalchemy-utils")
-    (version "0.42.1")
+    (version "0.43.0")
     (source
      (origin
        (method git-fetch)
        (uri (git-reference
-             (url "https://github.com/kvesteri/sqlalchemy-utils";)
-             (commit version)))
+              (url "https://github.com/kvesteri/sqlalchemy-utils";)
+              (commit version)))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "0ny1p352p0dlgrf9fnmzj7ld1rga5zj698qpla1kdaliwwh6xawn"))))
+        (base32 "06c8bwrcf1d9az4fk6jba8ay2wni3bczk2yniblxd7mydkdq0v3p"))))
     (build-system pyproject-build-system)
     (arguments
      (list
       #:test-flags
-      ;; XXX: These tests require additional inputs.
-      #~(list "--deselect=tests/test_views.py::TestMySqlTrivialView"
-              "--deselect=tests/functions/test_database.py::\
-TestDatabasePostgresPg8000::test_create_and_drop"
-              "--deselect=tests/functions/test_database.py::\
-TestDatabasePostgresPsycoPG2CFFI::test_create_and_drop")
+      ;; Tests require pg8000, psycopg2cffi, and pymysql.
+      #~(map (lambda (ls) (string-append "--deselect=tests/"
+                                         (string-join ls "::")))
+             '(("functions/test_database.py" "TestDatabasePostgresPg8000"
+                "test_create_and_drop")
+               ("functions/test_database.py"
+                "TestDatabasePostgresPsycoPG2CFFI" "test_create_and_drop")
+               ("test_views.py" "TestMySqlTrivialView"
+                "test_life_cycle_cascade")
+               ("test_views.py" "TestMySqlTrivialView"
+                "test_life_cycle_no_cascade")
+               ("test_views.py" "TestMySqlTrivialView"
+                "test_life_cycle_replace")
+               ("test_views.py" "TestMySqlTrivialView"
+                "test_life_cycle_replace_existing")
+               ("test_views.py" "TestMySqlTrivialView"
+                "test_replace_materialized")))
       #:phases
       #~(modify-phases %standard-phases
           (add-before 'check 'start-postgresql
@@ -4673,13 +4684,14 @@ TestDatabasePostgresPsycoPG2CFFI::test_create_and_drop")
                           "-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 sqlalchemy_utils_test;"))))))))
-    (propagated-inputs (list python-six python-sqlalchemy))
+    (propagated-inputs (list python-sqlalchemy))
     (native-inputs
      (list postgresql
            python-dateutil
            python-flexmock
+           python-psycopg
            python-psycopg2
            python-pytest
            python-pytz

Reply via email to