1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-06-12 08:04:07 +02:00

gnu: python-orange-canvas-core: Update to 0.2.5.

* gnu/packages/orange.scm: Add (guix gexp), (guix build-system
pyproject), and (gnu packages check). Sort modules alphabetically.
(python-orange-canvas-core): Update to 0.2.5. Use G-Expressions and fix
build.
[build-system]: Swap to pyproject-build-system.
[arguments] <test-flags>: Skip 3 tests.
<phases>: Remove 'check-setup, add 'pre-check and
'relax-requirements.
[propagated-inputs]: Add python-numpy, python-requests-cache, and
python-typing-extensions.
[native-inputs]: Add python-pytest, python-setuptools, python-trubar,
and python-wheel.

Change-Id: If504e1d6c01b4235d562991a5551c698dd6deb39
This commit is contained in:
Sharlatan Hellseher
2025-01-19 11:49:42 +00:00
committed by Ricardo Wurmus
parent b8f72c8a2b
commit ad595936b6
+41 -15
View File
@@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2021, 2022 Vinicius Monego <monego@posteo.net>
;;; Copyright © 2025 Sharlatan Hellseher <sharlatanus@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -18,11 +19,14 @@
(define-module (gnu packages orange)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system pyproject)
#:use-module (guix build-system python)
#:use-module (guix download)
#:use-module (guix gexp)
#:use-module (guix packages)
#:use-module (gnu packages)
#:use-module (gnu packages bash)
#:use-module (gnu packages check)
#:use-module (gnu packages freedesktop)
#:use-module (gnu packages graph)
#:use-module (gnu packages machine-learning)
@@ -36,32 +40,54 @@
(define-public python-orange-canvas-core
(package
(name "python-orange-canvas-core")
(version "0.1.24")
(version "0.2.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "orange-canvas-core" version))
(uri (pypi-uri "orange_canvas_core" version))
(sha256
(base32 "0m3dszdkc5bc80ahcvrqxz8jahs33js9cx1mc6rc9ihysq2ddnfz"))))
(build-system python-build-system)
(base32 "0bp6c5y4a4fzr1hg7aijlbfwp6bqacxxcqhwb2swc21aj846ns0n"))))
(build-system pyproject-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'check-setup
(list
#:test-flags
#~(list "-k" (string-join
(list
;; AttributeError: 'NoneType' object has no attribute
;; 'trigger'
"not test_context_menu_delete"
"test_copy_cut_paste"
;; AttributeError: 'NoneType' object has no attribute
;; 'isEnabled'
"test_item_context_menu")
" and not "))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'relax-requirements
(lambda _
;; This test fails with: RuntimeError: Event loop is closed.
(substitute* "orangecanvas/application/tests/test_mainwindow.py"
(("test_help_requests") "_test_help_requests"))
(setenv "HOME" "/tmp")
(setenv "QT_QPA_PLATFORM" "offscreen"))))))
(substitute* "setup.py"
;; Relax hard requirment of PIP.
((".*pip>=18.0.*") ""))))
(add-before 'check 'pre-check
(lambda _
(setenv "HOME" "/tmp")
(setenv "QT_QPA_PLATFORM" "offscreen"))))))
(native-inputs
(list python-pytest
python-setuptools
python-trubar
python-wheel))
(propagated-inputs
(list python-anyqt
python-cachecontrol
python-commonmark
python-dictdiffer
python-docutils
python-numpy
python-qasync
python-requests))
python-requests
python-requests-cache
python-typing-extensions))
(home-page "https://github.com/biolab/orange-canvas-core")
(synopsis "Core component of Orange Canvas")
(description