gnu: python-pyodbc: Update to 5.2.0.

* gnu/packages/databases.scm (python-pyodbc): Update to 5.2.0.
[build-system]: Switch to pyproject-build-system.
[native-inputs]: Add python-pytest, python-setuptools, python-wheel.
[arguments]<#:phases>: Remove 'check phase replacement.

Change-Id: I8c7dca720cf9550266dfa760263c3f25bae1b5b5
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-07-23 20:51:40 +02:00 committed by Sharlatan Hellseher
parent 0c622497a6
commit cfe402d5ef
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -3897,30 +3897,24 @@ development.")
(define-public python-pyodbc (define-public python-pyodbc
(package (package
(name "python-pyodbc") (name "python-pyodbc")
(version "4.0.35") (version "5.2.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "pyodbc" version)) (uri (pypi-uri "pyodbc" version))
(sha256 (sha256
(base32 "1j7577acd2f16zifw49ajg0aw7vm0pdg6jxrr1dlaa5rx14azfcj")) (base32 "1xd88k6rngm9n8z3klb0g94csa9m8sk7df544vpfxpf816cf72yy"))
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet (snippet
;; Delete precompiled binaries. The corresponding source is included. ;; Delete precompiled binaries. The corresponding source is included.
#~(for-each delete-file (find-files "." "\\.pyc$"))))) #~(for-each delete-file (find-files "." "\\.pyc$")))))
(build-system python-build-system) (build-system pyproject-build-system)
(inputs (inputs (list unixodbc))
(list unixodbc)) (native-inputs (list python-pytest python-setuptools python-wheel))
(arguments (arguments
;; XXX Tests fail with Can't open lib 'SQL Server Native Client 10.0' : ;; XXX Tests fail with [unixODBC][Driver Manager]Data source name not
;; file not found (0) (SQLDriverConnect)"). ;; found and no default driver specified (0) (SQLDriverConnect)
(list #:tests? #f (list #:tests? #f))
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python3" "tests3/test.py")))))))
(home-page "https://github.com/mkleehammer/pyodbc") (home-page "https://github.com/mkleehammer/pyodbc")
(synopsis "Python ODBC Library") (synopsis "Python ODBC Library")
(description "@code{python-pyodbc} provides a Python DB-API driver (description "@code{python-pyodbc} provides a Python DB-API driver