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

gnu: python-anaconda-client: Update to 1.13.1.

* gnu/packages/package-management.scm (python-anaconda-client): Update to 1.13.1.
[source]<snippet>: Drop it as no longer required.
[arguments] <test-flags>: Deselect just 2 failing tests.
<phases>: Remove 'python3.10-compatibility, and 'set-HOME; add
'fix-pytest-config.
[propagated-inputs]: Remove python-clyent; add python-anaconda-cli-base,
python-conda-package-handling, python-conda-package-streaming,
python-dateutil, python-defusedxml, python-pillow,
python-platformdirs, python-pytz, python-requests-toolbelt,
python-tqdm, and python-urllib3.
[native-inputs]: Remove python-coverage, python-dateutil, python-mock,
python-pillow, python-pytz, and python-wheel; add python-setuptools.

Change-Id: I3940329fa479e25d9b1b3a6528dd2d9797c0bcf6
This commit is contained in:
Sharlatan Hellseher
2025-11-03 21:21:11 +00:00
parent f688758fc9
commit ff126c5b9c

View File

@@ -1432,7 +1432,7 @@ manage (install/update) them for you.")
(define-public python-anaconda-client
(package
(name "python-anaconda-client")
(version "1.8.0")
(version "1.13.1")
(source
(origin
(method git-fetch)
@@ -1441,57 +1441,39 @@ manage (install/update) them for you.")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"1vyk0g0gci4z9psisb8h50zi3j1nwfdg1jw3j76cxv0brln0v3fw"))
;; `iter_fields' is no longer available in python-urllib (propagated from
;; python-requests).
(modules '((guix build utils)))
(snippet
#~(substitute* "binstar_client/requests_ext.py"
(("iter_fields") "iter_field_objects")))))
(base32 "06nn3cwhrrajsbn9pils2539lzplfnyhn9java3xrpm3ksxq9g72"))))
(build-system pyproject-build-system)
(arguments
(list
#:test-flags
;; These tests require a network connection
'(append (map (lambda (file)
(string-append "--ignore=binstar_client/" file))
(list "tests/test_upload.py"
"tests/test_authorizations.py"
"tests/test_login.py"
"tests/test_whoami.py"
"utils/notebook/tests/test_data_uri.py"
"utils/notebook/tests/test_base.py"
"utils/notebook/tests/test_downloader.py"
"inspect_package/tests/test_conda.py"))
;; get_conda_root returns None
(list "-k"
"not test_conda_root \
and not test_conda_root_outside_root_environment"))
#~(list "--deselect=tests/utils/test_conda.py::test_find_conda"
"--deselect=tests/utils/test_conda.py::test_conda_vars")
#:phases
'(modify-phases %standard-phases
(add-after 'unpack 'python3.10-compatibility
(lambda _
(substitute* "binstar_client/utils/config.py"
(("collections.Mapping") "collections.abc.Mapping"))))
;; This is needed for some tests.
(add-before 'check 'set-HOME
(lambda _ (setenv "HOME" "/tmp"))))))
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-pytest-config
(lambda _
(substitute* "setup.cfg"
(("addopts=.*") "addopts=\n")))))))
(native-inputs
(list python-freezegun
python-pytest
python-setuptools))
(propagated-inputs
(list python-clyent
(list python-anaconda-cli-base
python-conda-package-handling
python-conda-package-streaming
python-dateutil
python-defusedxml
python-nbformat
python-pillow
python-platformdirs
python-pytz
python-pyyaml
python-requests
python-setuptools))
(native-inputs
(list python-coverage
python-dateutil
python-freezegun
python-mock
python-pillow
python-pytest
python-pytz
python-wheel))
python-requests-toolbelt
python-setuptools
python-tqdm
python-urllib3))
(home-page "https://github.com/Anaconda-Platform/anaconda-client")
(synopsis "Anaconda Cloud command line client library")
(description