From 6bdf5f3b662d1c371c841a86db9e28ee6345e28d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 15 Dec 2025 22:01:37 +0000 Subject: [PATCH] gnu: python-pythran: Clean up artifacts. * gnu/packages/python-science.scm (python-pythran): Adjust style and remove unused parts. [source] : Use a direct URL string. [arguments] : Drop them as not used. [native-inputs]: Remove openblas, python-pytest, python-pytest-xdist, and python-wheel. [home-page]: Move above [synopsis]. Change-Id: I7708981548ce68351c00fbf4e8f8e806a18f798a Signed-off-by: Rutherther --- gnu/packages/python-science.scm | 54 +++++++++++---------------------- 1 file changed, 18 insertions(+), 36 deletions(-) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 99ee2c250a0f8e771065875f16367bbcb56ecb4a..99cb89d388e0b113711eb93f7ddc22341cfa1452 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -4252,50 +4252,32 @@ y, z)}.") (package (name "python-pythran") (version "0.17.0") - (home-page "https://github.com/serge-sans-paille/pythran") - (source (origin - (method git-fetch) - (uri (git-reference (url home-page) (commit version))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1rm9lfbz5qvah1m0rr5gaaahkf1gzwlw1ysvym2l2yh0clglav94")))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/serge-sans-paille/pythran") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1rm9lfbz5qvah1m0rr5gaaahkf1gzwlw1ysvym2l2yh0clglav94")))) (build-system pyproject-build-system) (arguments (list ;; FIXME: find more reliable tests file(s), all tests from ;; test_typing.py fail with error: ModuleNotFoundError: No module named ;; 'distutils.msvccompiler'. - #:tests? #f - #:test-flags - '(list (string-append "--numprocesses=" (number->string - (parallel-job-count))) - ;; XXX There are lots of tests of the format - ;; pythran/tests/test_*.py, but they cannot easily be selected. - "pythran/tests/test_typing.py") - #:phases - #~(modify-phases %standard-phases - (add-before 'check 'pre-check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - ;; Remove compiler flag that trips newer GCC: - ;; https://github.com/serge-sans-paille/pythran/issues/908 - (substitute* "pythran/tests/__init__.py" - (("'-Wno-absolute-value',") "")) - (setenv "HOME" (getcwd)) - ;; This setup is modelled after the upstream CI system. - (call-with-output-file ".pythranrc" - (lambda (port) - (format port "[compiler]\nblas=openblas~%"))))))))) + #:tests? #f)) (native-inputs - ;; For tests. - (list openblas - python-pytest - python-pytest-xdist - python-setuptools - python-wheel)) + (list python-setuptools)) (propagated-inputs - (list boost xsimd ;headers need to be available - python-beniget python-gast python-numpy python-ply)) + (list boost ;headers need to be available + xsimd + python-beniget + python-gast + python-numpy + python-ply)) + (home-page "https://github.com/serge-sans-paille/pythran") (synopsis "Ahead of Time compiler for numeric kernels") (description "Pythran is an ahead of time compiler for a subset of the Python