gnu: conda: Update to 22.9.0.

* gnu/packages/package-management.scm (conda): Update to 22.9.0.
[arguments]: Add phase "use-older-pytest"; run tests conditionally; disable
broken tests; remove phase "fix-permissions".
[propagated-inputs]: Add python-boto3 and python-pluggy.
[native-inputs]: Add python-coverage, python-flaky, and
python-pytest-xprocess.
This commit is contained in:
Ricardo Wurmus 2022-11-17 14:29:35 +01:00
parent d26337e7ef
commit 8e42bfaffa
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC

View File

@ -1007,7 +1007,7 @@ extracting, creating, and converting between formats.")
(define-public conda (define-public conda
(package (package
(name "conda") (name "conda")
(version "4.10.3") (version "22.9.0")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -1017,17 +1017,16 @@ extracting, creating, and converting between formats.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1w4yy62bsvkybjvcm5fspck4ns5j16nplzpbx6bxv7zhx69pcp4n")))) "16vz4vx311ry9w35mi5wna8p8n3abd6wdqrpqzjfdlwv7hcr44s4"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'fix-permissions ;; The default version of pytest does not support these options.
(add-after 'unpack 'use-older-pytest
(lambda _ (lambda _
;; This file is no longer writable after downloading with (substitute* "setup.cfg"
;; 'git-fetch' (("--xdoctest-.*") ""))))
(make-file-writable
"tests/conda_env/support/saved-env/environment.yml")))
(add-after 'unpack 'fix-ruamel-yaml-dependency (add-after 'unpack 'fix-ruamel-yaml-dependency
(lambda _ (lambda _
(substitute* "setup.py" (substitute* "setup.py"
@ -1071,37 +1070,44 @@ extracting, creating, and converting between formats.")
(with-output-to-file "conda/.version" (with-output-to-file "conda/.version"
(lambda () (display ,version))))) (lambda () (display ,version)))))
(replace 'check (replace 'check
(lambda _ (lambda* (#:key tests? #:allow-other-keys)
(setenv "HOME" "/tmp") ;; These tests all require network access.
(invoke "py.test" "-vv" (for-each delete-file '("tests/cli/test_main_clean.py"
"-k" "tests/cli/test_main_rename.py"))
(string-append (when tests?
"not integration" (setenv "HOME" "/tmp")
;; This one reports a newer version of conda than (invoke "py.test" "-vv"
;; expected. "-k"
" and not test_auto_update_conda" (string-append
;; This fails because the output directory is not a "not integration"
;; Conda environment. ;; This one reports a newer version of conda than
" and not test_list" ;; expected; conda-1.5.2-py27_0 instead of
;; This fails because we patched the default root ;; conda-1.3.5-py27_0.
;; prefix. " and not test_auto_update_conda"
" and not test_default_target_is_root_prefix" ;; This fails because the output directory is not a
;; Conda environment.
" and not test_list"
;; This fails because we patched the default root
;; prefix.
" and not test_default_target_is_root_prefix"
;; This fails because of missing features in python-flaky.
" and not test_no_features"
;; These fail because they require network access
" and not test_no_ssl"
" and not test_run_readonly_env"
" and not test_run_returns_int"
" and not test_run_returns_nonzero_errorlevel"
" and not test_run_returns_zero_errorlevel"
" and not test_run_uncaptured"
;; These fail because ... ;; TODO: I don't understand what this failure means
;; TODO: conda patches its own shebang to " and not test_PrefixData_return_value_contract"
;; $conda-prefix/bin/python, which is obviously wrong. ;; TODO: same here
" and not test_run_returns_int" " and not test_install_1"
" and not test_run_returns_zero_errorlevel" ;; Not sure if this is really wrong. This fails because
" and not test_run_returns_nonzero_errorlevel" ;; /gnu/store/...conda-22.9.0/bin/python
;; is not /gnu/store/...python-wrapper-3.9.9/bin/python
;; TODO: I don't understand what this failure means " and not test_make_entry_point")))))
" and not test_PrefixData_return_value_contract"
;; TODO: same here
" and not test_install_1"
;; Not sure if this is really wrong. This fails because
;; /gnu/store/...python-conda-4.8.3/bin/python
;; is not /gnu/store/...python-wrapper-3.8.2/bin/python
" and not test_make_entry_point"))))
(add-after 'install 'init (add-after 'install 'init
;; This writes a whole bunch of shell initialization files to the ;; This writes a whole bunch of shell initialization files to the
;; prefix directory. Many features of conda can only be used after ;; prefix directory. Many features of conda can only be used after
@ -1116,8 +1122,10 @@ extracting, creating, and converting between formats.")
(list python-wrapper)) (list python-wrapper))
(propagated-inputs (propagated-inputs
(list python-anaconda-client (list python-anaconda-client
python-boto3
python-conda-package-handling python-conda-package-handling
python-cytoolz python-cytoolz
python-pluggy
python-pycosat python-pycosat
python-pytest python-pytest
python-pyyaml python-pyyaml
@ -1128,7 +1136,10 @@ extracting, creating, and converting between formats.")
;; XXX: This is dragged in by libarchive and is needed at runtime. ;; XXX: This is dragged in by libarchive and is needed at runtime.
zstd)) zstd))
(native-inputs (native-inputs
(list python-pytest-timeout)) (list python-coverage
python-flaky
python-pytest-timeout
python-pytest-xprocess))
(home-page "https://github.com/conda/conda") (home-page "https://github.com/conda/conda")
(synopsis "Cross-platform, OS-agnostic, system-level binary package manager") (synopsis "Cross-platform, OS-agnostic, system-level binary package manager")
(description (description