diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-15 15:44:29 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-15 15:44:41 +0100 |
| commit | 901d8f72df48129cab78b1c51c8f99f075f5dc38 (patch) | |
| tree | 89a3ad6c03c9e14dc0d92d751b6fd7e2dd2bab94 /gnu/packages | |
| parent | 13fe86851229d6ee95a624db88c5cf9818e9b01f (diff) | |
gnu: python-dask-image: Fix tests.
* gnu/packages/python-science.scm (python-dask-image)[arguments]
<test-flags>: Rework skipped tests and enable more tests.
[propagated-inputs]: Remove python-tifffile; add
python-tifffile-for-dask-image.
[description]: Remove new line in the end.
* gnu/packages/python-xyz.scm (python-tifffile-for-dask-image): New variable.
Change-Id: I8539569aab1134d049ec8e8c0041191ce61e2eb7
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/python-science.scm | 40 | ||||
| -rw-r--r-- | gnu/packages/python-xyz.scm | 14 |
2 files changed, 34 insertions, 20 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 0b82a6c2fe5..65f385d494d 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -915,19 +915,19 @@ optimization and generally improved organization.") (build-system pyproject-build-system) (arguments (list + ;; tests: 2152 passed, 177 skipped, 6 deselected, 4037 warnings #:test-flags - ;; Flake8 attribute errors. - '(list "--ignore=dask_image/ndfilters/_threshold.py" - "--ignore=dask_image/ndfourier/_utils.py" - "--ignore=dask_image/ndinterp/__init__.py" - "--ignore=dask_image/ndmeasure/__init__.py" - "--ignore=dask_image/ndmeasure/_utils/_find_objects.py" - "--ignore=dask_image/ndmeasure/_utils/_label.py" - "--ignore=tests/test_dask_image/test_ndfilters/test__conv.py" - "--ignore=tests/test_dask_image/test_ndfourier/test_core.py" - "--ignore=tests/test_dask_image/test_ndinterp/test_spline_filter.py" - "--ignore=tests/test_dask_image/test_ndmeasure/test_core.py" - "--ignore=tests/test_dask_image/test_ndmeasure/test_find_objects.py") + #~(list "-k" (string-join + ;; KeyError: 'float32 + (list "not test_spline_filter_output_dtype[None-float32_1]" + "test_spline_filter_output_dtype[-1-float32_1]" + ;; AttributeError: 'str' object has no attribute + ;; 'start' + "test_find_objects" + "test_3d_find_objects" + ;; assert False + "test_find_objects_with_empty_chunks") + " and not ")) #:phases #~(modify-phases %standard-phases (add-before 'build 'set-version @@ -936,17 +936,18 @@ optimization and generally improved organization.") (("^version_file.*") "") (("dynamic = \\[\"version\"\\]") (string-append "version = \"" #$version "\"")))))))) - (propagated-inputs (list python-dask - python-numpy - python-pandas - python-pims - python-scipy - python-tifffile)) (native-inputs (list python-pytest python-pytest-timeout python-setuptools python-setuptools-scm)) + (propagated-inputs + (list python-dask + python-numpy + python-pandas + python-pims + python-scipy + python-tifffile-for-dask-image)) (home-page "https://github.com/dask/dask-image") (synopsis "Distributed image processing") (description "This is a package for image processing with Dask arrays. @@ -958,8 +959,7 @@ Features: @item Includes a few N-D Fourier filters. @item Provides some functions for working with N-D label images. @item Supports a few N-D morphological operators. -@end itemize -") +@end itemize") (license license:bsd-3))) (define-public python-decaylanguage diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index d04127e03b2..9c5f54a0657 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -12771,6 +12771,20 @@ MicroManager, MD GEL, and FluoView files. It also lets you write numpy arrays to TIFF, BigTIFF, and ImageJ hyperstack compatible files.") (license license:bsd-3))) +(define-public python-tifffile-for-dask-image + ;; It's for python-dask-image@2024.5.3, remove when no longer required. + (hidden-package + (package + (inherit python-tifffile) + (name "python-tifffile") + (version "2023.12.9") + (source + (origin + (method url-fetch) + (uri (pypi-uri "tifffile" version)) + (sha256 + (base32 "1f6d8qdlq0zlksfdhp1mhj9icpwhw4cz47r4i80m6r0a328xmlcx"))))))) + (define-public python-tiktoken (package (name "python-tiktoken") |
