guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 693e765bb31b56b787ccd04eb77711a993797636
Author: Nicolas Graves <[email protected]>
AuthorDate: Mon Dec 29 08:41:03 2025 +0100
gnu: python-slepc4py: Switch to pyproject.
* gnu/packages/maths.scm (python-slepc4py): Run guix style.
[build-system]: Switch to pyproject-build-system.
[native-inputs]: Add python-setuptools.
[description]: Improve style.
Change-Id: I926c3c5eccb0b1d8174e297d5a1f0b363e0f309a
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/maths.scm | 56 ++++++++++++++++++++++++++------------------------
1 file changed, 29 insertions(+), 27 deletions(-)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 0d121c2793..6762785a81 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -4963,37 +4963,39 @@ arising after the discretization of partial
differential equations.")
(name "python-slepc4py")
(version "3.24.0")
(source
- (origin
- (method url-fetch)
- (uri (pypi-uri "slepc4py" version))
- (sha256
- (base32
- "1wiqcwgr9mq81dd68glsnwn57gqmgahcvcchqqqq3ns7bykvdjah"))))
- (build-system python-build-system)
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "slepc4py" version))
+ (sha256
+ (base32 "1wiqcwgr9mq81dd68glsnwn57gqmgahcvcchqqqq3ns7bykvdjah"))))
+ (build-system pyproject-build-system)
(arguments
- (list #:phases
- #~(modify-phases %standard-phases
- (add-before 'build 'pre-build
- (lambda* (#:key inputs #:allow-other-keys)
- ;; Define path to PETSc installation.
- (setenv "PETSC_DIR" (assoc-ref inputs "petsc-openmpi"))
- ;; Define path to SLEPc installation.
- (setenv "SLEPC_DIR" (assoc-ref inputs "slepc-openmpi"))))
- (add-before 'check 'mpi-setup
- #$%openmpi-setup)
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "python" "test/runtests.py")))))))
- (native-inputs (list python-cython))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'pre-build
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; Define path to PETSc installation.
+ (setenv "PETSC_DIR"
+ (assoc-ref inputs "petsc-openmpi"))
+ ;; Define path to SLEPc installation.
+ (setenv "SLEPC_DIR"
+ (assoc-ref inputs "slepc-openmpi"))))
+ (add-before 'check 'mpi-setup
+ #$%openmpi-setup)
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "python" "test/runtests.py")))))))
+ (native-inputs (list python-cython python-setuptools))
(inputs (list python-numpy python-petsc4py petsc-openmpi slepc-openmpi))
(home-page "https://bitbucket.org/slepc/slepc4py/")
(synopsis "Python bindings for SLEPc")
- (description "SLEPc, the Scalable Library for Eigenvalue Problem
-Computations, is based on PETSc, the Portable, Extensible Toolkit for
-Scientific Computation. It employs the MPI standard for all
-message-passing communication. @code{slepc4py} provides Python
-bindings to almost all functions of SLEPc.")
+ (description
+ "SLEPc, the Scalable Library for Eigenvalue Problem Computations, is
+based on PETSc, the Portable, Extensible Toolkit for Scientific Computation.
+It employs the MPI standard for all message-passing communication.
+@code{slepc4py} provides Python bindings to almost all functions of SLEPc.")
(license license:bsd-3)))
(define-public metamath