summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Buddelmeijer <hugo@buddelmeijer.nl>2025-12-15 19:16:43 +0100
committerAndreas Enge <andreas@enge.fr>2025-12-17 11:20:20 +0100
commit100454dbe8b301c4e713c0ed6b860eff3b0af7fa (patch)
tree338296579cab6871f32bc77824025bbfd171a00f
parent45e1b3c7762cd0b4464478b3ec19f5bf99da5fc8 (diff)
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 <rutherther@ditigal.xyz>
-rw-r--r--gnu/packages/databases.scm29
1 files changed, 24 insertions, 5 deletions
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 1e649040c7e..acbacc61512 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