summaryrefslogtreecommitdiff
path: root/gnu/packages/maths.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-12-28 22:50:28 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-12-31 14:26:17 +0000
commitd9e834bd3e7dee2f4db07086706cba626cd364dc (patch)
tree3debb6d662e9441d65a8a6984f4be879c91289c1 /gnu/packages/maths.scm
parent30193dd717173ed1f170a00b97bc023e29f82963 (diff)
gnu: python-cvxopt: Switch to pyproject.
* gnu/packages/maths.scm (python-cvxopt): [build-system]: Switch to pyproject-build-system. [arguments]: Improve style, use gexps. [native-inputs]: Add python-pytest, python-setuptools. Change-Id: Ife73ce0b238ccbf2d0eff7164eccfce5c721384f Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/maths.scm')
-rw-r--r--gnu/packages/maths.scm48
1 files changed, 22 insertions, 26 deletions
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 6762785a816..283289841f7 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -4417,33 +4417,29 @@ self-contained C-extension for Python.")
(package
(name "python-cvxopt")
(version "1.3.2")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/cvxopt/cvxopt")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0vdfag3rr906w0gk7vxm2yxfy8y92i4wmqxi82cbykpfp5r82i36"))))
- (build-system python-build-system)
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/cvxopt/cvxopt")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0vdfag3rr906w0gk7vxm2yxfy8y92i4wmqxi82cbykpfp5r82i36"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'find-libraries
- (lambda* (#:key inputs #:allow-other-keys)
- (setenv "CVXOPT_BLAS_LIB" "openblas")
- (setenv "CVXOPT_LAPACK_LIB" "openblas")
- (setenv "CVXOPT_BUILD_FFTW" "1")
- (setenv "CVXOPT_BUILD_GLPK" "1")
- (setenv "CVXOPT_BUILD_GSL" "1")
- #t)))))
- (inputs
- (list fftw
- glpk
- gsl
- openblas
- suitesparse))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'find-libraries
+ (lambda* (#:key inputs #:allow-other-keys)
+ (setenv "CVXOPT_BLAS_LIB" "openblas")
+ (setenv "CVXOPT_LAPACK_LIB" "openblas")
+ (setenv "CVXOPT_BUILD_FFTW" "1")
+ (setenv "CVXOPT_BUILD_GLPK" "1")
+ (setenv "CVXOPT_BUILD_GSL" "1"))))))
+ (native-inputs (list python-pytest python-setuptools))
+ (inputs (list fftw glpk gsl openblas suitesparse))
(home-page "https://www.cvxopt.org")
(synopsis "Python library for convex optimization")
(description