gnu: python-minio: Switch to pyproject.

* gnu/packages/python-web.scm (python-minio):
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]: Replace <#:phases> with <#:test-flags>.
[native-inputs]: Remove them. Add python-pytest,
python-setuptools-next.

Change-Id: I231b16e279c34b2d93ce5b533d2fcae435e03e8c
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-09-06 15:26:55 +02:00 committed by Sharlatan Hellseher
parent cc8b2ef6c6
commit d0283dde90
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -3357,21 +3357,22 @@ be written directly in Python without templates.")
(package (package
(name "python-minio") (name "python-minio")
(version "7.1.9") (version "7.1.9")
(source (origin (source
(method url-fetch) (origin
(uri (pypi-uri "minio" version)) (method git-fetch)
(sha256 (uri (git-reference
(base32 (url "https://github.com/minio/minio-py")
"02nh865xbf2glxvcy70ir6gkcwqxl119zryfc70q7w0yjvkg64d7")))) (commit version)))
(build-system python-build-system) (file-name (git-file-name name version))
(sha256
(base32 "01734ki3p7844dya366hy1kvmmgy3xr0l0zbkchnnv4p611510vc"))))
(build-system pyproject-build-system)
(arguments (arguments
'(#:phases (modify-phases %standard-phases (list
(add-before 'check 'disable-failing-tests #:test-flags
(lambda _ ;; XXX: requires network access.
;; This test requires network access. #~(list "--ignore=tests/unit/credentials_test.py")))
(delete-file "tests/unit/credentials_test.py")))))) (native-inputs (list python-pytest python-setuptools-next))
(native-inputs
(list python-faker python-mock python-nose))
(propagated-inputs (propagated-inputs
(list python-certifi python-dateutil python-pytz python-urllib3)) (list python-certifi python-dateutil python-pytz python-urllib3))
(home-page "https://github.com/minio/minio-py") (home-page "https://github.com/minio/minio-py")