guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 1a587bd302ab61454b9121d179d6868ab9cdf114
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat Dec 27 13:50:22 2025 +0000
gnu: python-pytensor: Simplify package.
* gnu/packages/python-science.scm (python-pytensor):
[arguments] <test-flags>: Let pytest discover tests.
[phases]{pre-check}: Replace re-build extensions by deleting local
source.
[propagated-inputs]: Remove python-typing-extensions.
[native-inputs]: Remove python-wheel.
Change-Id: I42f97a93e1704856d29691f99414d4f2497723b9
---
gnu/packages/python-science.scm | 20 +++++++++-----------
1 file changed, 9 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index c095e9974e..657a1423a1 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -5097,6 +5097,7 @@ objects.")
(build-system pyproject-build-system)
(arguments
(list
+ ;; tests: 1437 passed, 111 skipped, 11 deselected, 8 xfailed, 154
warnings
#:test-flags
;; XXX: Full test suite takes about 20-30min to complete in single
;; thread, attempt to run tests in parallel with pytest-xdist fails even
@@ -5134,11 +5135,7 @@ objects.")
;; Assertion fails in tests.
"test_choose_signature"
"test_fgraph_to_python_names")
- " and not ")
- ;; Tests collection selects pytensor, which does not contain
- ;; tests and fails to pass; manually provide a test directory
- ;; instead.
- "tests")
+ " and not "))
#:phases
#~(modify-phases %standard-phases
;; Replace version manually because pytensor uses
@@ -5153,23 +5150,24 @@ objects.")
(lambda _
;; It is required for most tests.
(setenv "HOME" "/tmp")
- ;; Cython extensions have to be built before running the tests.
- (invoke "python" "setup.py" "build_ext" "--inplace"))))))
+ ;; This would otherwise interfere with finding the installed
+ ;; pytensor when running tests.
+ (delete-file-recursively "pytensor"))))))
(native-inputs (list python-cython
python-pytest
python-pytest-mock
python-versioneer
- python-setuptools
- python-wheel))
+ python-setuptools))
(propagated-inputs (list python-cons
python-etuples
python-filelock
python-logical-unification
python-minikanren
- python-numba
python-numpy
python-scipy
- python-typing-extensions))
+ ;; [optinal]
+ ;; python-jax
+ python-numba))
(home-page "https://pytensor.readthedocs.io/en/latest/")
(synopsis
"Library for mathematical expressions in multi-dimensional arrays")