guix_mirror_bot pushed a commit to branch next-master
in repository guix.
commit 3d31e4ae8613611816a024cddec470cd31189383
Author: Nicolas Graves <[email protected]>
AuthorDate: Tue Jan 6 11:34:12 2026 +0100
gnu: python-ipydatawidgets: Switch to pyproject.
* gnu/packages/jupyter.scm (python-ipydatawidgets):
[build-system]: Switch to pyproject-build-system.
[arguments]: Improve style.
<#:phases>: Migrate 'check phase replacement to <#:test-flags>.
Use 'build and 'install phases from the python-build-system, as it
currently fails for the pyproject-build-system.
[native-inputs]: Add python-setuptools.
Fixes: guix/guix#5524
Change-Id: I410c5fa6ba4cc95bae2e5ace227a4ad07ebc118b
Modified-by: Sharlatan Hellseher <[email protected]>
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/jupyter.scm | 50 +++++++++++++++++++++++++++++-------------------
1 file changed, 30 insertions(+), 20 deletions(-)
diff --git a/gnu/packages/jupyter.scm b/gnu/packages/jupyter.scm
index ad3c30513c..c79309ab02 100644
--- a/gnu/packages/jupyter.scm
+++ b/gnu/packages/jupyter.scm
@@ -1628,26 +1628,35 @@ JupyterLab.")
(uri (pypi-uri "ipydatawidgets" version))
(sha256
(base32 "1g65nzlsb1cipmvh9v27b22kkmzwvg8zbf32hmg1c25mb65vbr6h"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
- '(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke
- "pytest" "-v"
- ;; Disable failing tests.
- "-k" (string-append
- "not test_dataunion_constricts_widget_data"
- " and not test_dataunion_widget_change_notified"
- " and not test_datawidget_creation_blank_comm"
- ;; TODO: type object 'Widget' has no attribute
'_ipython_display_'
- " and not test_notification"
- " and not test_manual_notification"
- " and not test_sync_segment"
- " and not test_hold_sync"
- " and not test_hold_sync_segment"))))))))
+ (list
+ ;; tests: 87 passed, 9 deselected, 12 warnings
+ #:test-flags
+ #~(list ;; Disable failing tests.
+ "--ignore=examples/test.ipynb"
+ "-k" (string-append
+ "not test_dataunion_constricts_widget_data"
+ " and not test_dataunion_widget_change_notified"
+ " and not test_datawidget_creation_blank_comm"
+ ;; TODO: type object 'Widget' has no attribute
'_ipython_display_'
+ " and not test_notification"
+ " and not test_manual_notification"
+ " and not test_sync_segment"
+ " and not test_hold_sync"
+ " and not test_hold_sync_segment"
+ ;; OverflowError: Python integer -33 out of bounds for uint8
+ " and not test_dtype_coerce"))
+ ;; XXX: Missing files when running bdist_wheel.
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'build
+ (lambda _
+ (invoke "python" "setup.py" "build")))
+ (replace 'install
+ (lambda _
+ (invoke "python" "setup.py" "install"
+ (string-append "--prefix=" #$output)))))))
(propagated-inputs
(list python-ipython-genutils
python-ipywidgets
@@ -1657,7 +1666,8 @@ JupyterLab.")
(list python-jupyter-packaging
python-nbval
python-pytest
- python-pytest-cov))
+ python-pytest-cov
+ python-setuptools))
(home-page "https://github.com/vidartf/ipydatawidgets")
(synopsis "Widgets to help facilitate reuse of large datasets across
widgets")
(description