gnu: python-smart-open: Update to 7.3.0.

* gnu/packages/python-web.scm (python-smart-open): Update to 7.3.0.
  [source]: Switch to git-fetch containing tests.
  [build-system]: Use pyproject.
  [arguments] <test-flags>: Skipp integration tests and the ones
  requiring python-google-cloud-storage due to guix/guix#1436 issue.
  <phases>: Use default 'check.
  [propagated-inputs]: Remove python-google-cloud-storage; add
  python-paramiko, python-wrapt, and python-zstandard.
  [native-inputs]: Remove python-flask, python-flask-cors,
  python-graphql-core, python-paramiko, and python-pathlib2; add
  python-numpy, python-setuptools, and python-wheel.

Change-Id: I789206a8d771959f433ae56ab4b642c8e4d23117
This commit is contained in:
Sharlatan Hellseher 2025-07-20 22:53:45 +01:00
parent 0dca067d27
commit f5a97f8e83
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -10180,39 +10180,46 @@ library for Python.")
(define-public python-smart-open (define-public python-smart-open
(package (package
(name "python-smart-open") (name "python-smart-open")
(version "6.0.0") (version "7.3.0")
(source (source
(origin (origin
(method url-fetch) (method git-fetch) ;no tests in PyPI archive
(uri (pypi-uri "smart_open" version)) (uri (git-reference
(url "https://github.com/piskvorky/smart_open")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 "1c12ilanx9hgpcc5chjkaqnx1hx14iazyindy7syvjhbdywhc0fn")))) (base32 "1jk3dj0j7idv94g1ga5wyvybakj4l150g26cbsjkrjfpy017vxab"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
`(#:tests? #false ;none included (list
#:phases #:test-flags
(modify-phases %standard-phases #~(list "--ignore=ci_helpers/"
(replace 'check "--ignore=integration-tests/"
(lambda* (#:key tests? #:allow-other-keys) ;; FIXME: Enable when guix/guix#1436 is resolved.
(when tests? "--deselect=tests/test_smart_open.py::ParseUriTest::test_gs_uri"
(invoke "pytest"))))))) "--deselect=tests/test_smart_open.py::ParseUriTest::test_gs_uri_contains_question_mark"
"--deselect=tests/test_smart_open.py::ParseUriTest::test_gs_uri_contains_slash"
"--deselect=tests/test_smart_open.py::ParseUriTest::test_scheme"
"--ignore=tests/test_gcs.py")))
(propagated-inputs (propagated-inputs
(list python-azure-common (list python-azure-common
python-azure-core python-azure-core
python-azure-storage-blob python-azure-storage-blob
python-boto3 python-boto3
python-google-cloud-storage ;; python-google-cloud-storage ;see guix/guix#1436
python-requests))
(native-inputs
(list python-flask
python-flask-cors
python-graphql-core
python-moto
python-paramiko python-paramiko
python-pathlib2 python-requests
python-wrapt
python-zstandard))
(native-inputs
(list python-numpy
python-moto
python-pytest python-pytest
python-pytest-rerunfailures python-pytest-rerunfailures
python-responses)) python-responses
python-setuptools
python-wheel))
(home-page "https://github.com/piskvorky/smart_open") (home-page "https://github.com/piskvorky/smart_open")
(synopsis "Utilities for streaming large files") (synopsis "Utilities for streaming large files")
(description (description