summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-12-29 08:41:03 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-12-31 13:26:58 +0000
commit693e765bb31b56b787ccd04eb77711a993797636 (patch)
tree62fe3a90e0bac2521a683b345e51ccbcf29521d7 /gnu
parent56598668a72e5cbd89d16fde03731110e9dbf7d2 (diff)
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 <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/maths.scm56
1 files changed, 29 insertions, 27 deletions
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 0d121c27938..6762785a816 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