guix_mirror_bot pushed a commit to branch ungraft
in repository guix.

commit 77fc1a8b0961d010786d0c7112a3b848109203f7
Author: Hugo Buddelmeijer <[email protected]>
AuthorDate: Mon Dec 15 19:16:43 2025 +0100

    gnu: python-databases: Update to 0.8.0.
    
    * gnu/packages/databases.scm (python-databases): Update to 0.8.0.
    [source]: Switch to git-fetch.
    [build-system]: Switch to pyproject-build-system.
    [arguments]<#:test-flags>: Disable tests that require a database.
    [native-inputs]: Add python-httpx, python-psycopg, python-pytest,
    python-setuptools, and python-starlette.
    
    Change-Id: I812d3e91fa0af6bee4df058d8563f5b0be28a3f2
    Signed-off-by: Rutherther <[email protected]>
---
 gnu/packages/databases.scm | 29 ++++++++++++++++++++++++-----
 1 file changed, 24 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 1e649040c7..acbacc6151 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -4628,14 +4628,33 @@ managers for automatically closing connections.")
 (define-public python-databases
   (package
     (name "python-databases")
-    (version "0.7.0")
+    ;; 0.9.0 needs sqlalchemy>=2.0.7
+    ;; 0.8.0 needs sqlalchemy>=1.4.42,<1.5
+    (version "0.8.0")
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "databases" version))
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/encode/databases";)
+              (commit version)))
+       (file-name (git-file-name name version))
        (sha256
-        (base32 "0x5nqhzgjqimv2ybjbzy5vv0l23g0n1g5f6fnyahbf1f7nfl2bga"))))
-    (build-system python-build-system)
+        (base32 "183yawn8w561y1ni117rf5zaxm4gqqbcmi9fp52xd5fx2dj8qy3v"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:test-flags
+      ;; These need TEST_DATABASE_URLS set.
+      ;; TODO: Use "sqlite:///test.db"? See docs/contributing.md.
+      #~(list "--ignore=tests/test_databases.py"
+              "--ignore=tests/test_integration.py"
+              "--ignore=tests/test_connection_options.py")))
+    (native-inputs
+     (list python-httpx
+           python-psycopg
+           python-pytest
+           python-setuptools
+           python-starlette))
     (propagated-inputs
      (list python-aiosqlite
            python-aiopg

Reply via email to