1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

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>
This commit is contained in:
Hugo Buddelmeijer
2025-12-15 19:16:43 +01:00
committed by Andreas Enge
parent 45e1b3c776
commit 100454dbe8

View File

@@ -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