From b55451492742e5632ee0afa0d6ebbe84fb6c6f3d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 8 Jul 2024 23:26:35 +0100 Subject: [PATCH] gnu: Add python-adbc-driver-manager. * gnu/packages/databases.scm (python-adbc-driver-manager): New variable. Change-Id: Idf4056923def64e5603d9fb175126870cbe24624 --- gnu/packages/databases.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index d585f88834..e6fabaa223 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -614,6 +614,38 @@ (define-public libmemcached @end itemize") (license license:bsd-3))) +(define-public python-adbc-driver-manager + (package + (name "python-adbc-driver-manager") + (version "1.1.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "adbc_driver_manager" version)) + (sha256 + (base32 "00i3zg6rbzdz767j9w22ajw8rxwbhkrmzwwlmx11q56cvnig0cm3")))) + (build-system pyproject-build-system) + (arguments + (list + ;; TODO: Pack arrow-adbc/c/driver/sqlite for tests. + #:tests? #f + #:build-backend "setuptools.build_meta")) + (propagated-inputs + (list python-typing-extensions)) + (native-inputs + (list python-cython-3 + python-pytest)) + (home-page "https://arrow.apache.org/adbc/") + (synopsis "Generic entrypoint for ADBC drivers in Python") + (description + "This package contains bindings for the ADBC Driver Manager, as well as a +@url{https://peps.python.org/pep-0249/,DBAPI 2.0/PEP 249-compatible} interface +on top. This can be used to load ADBC drivers at runtime and use them from +Python. Backend-specific packages like @code{adbc_driver_postgresql} wrap +this package in a more convenient interface, and should be preferred where +they exist.") + (license license:asl2.0))) + (define-public python-prisma (package (name "python-prisma")