summaryrefslogtreecommitdiff
path: root/gnu/packages/python-science.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-12-27 13:50:22 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-12-27 15:19:20 +0000
commit1a587bd302ab61454b9121d179d6868ab9cdf114 (patch)
tree22ad2c9cadaaca1f6e0cb528091e05a588b285ee /gnu/packages/python-science.scm
parente06dfd53995551ae80d2ce31ae618b02c9ab4d43 (diff)
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
Diffstat (limited to 'gnu/packages/python-science.scm')
-rw-r--r--gnu/packages/python-science.scm20
1 files changed, 9 insertions, 11 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index c095e9974e6..657a1423a13 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")