diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-12-28 22:50:28 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-31 14:26:17 +0000 |
| commit | d9e834bd3e7dee2f4db07086706cba626cd364dc (patch) | |
| tree | 3debb6d662e9441d65a8a6984f4be879c91289c1 /gnu/packages/maths.scm | |
| parent | 30193dd717173ed1f170a00b97bc023e29f82963 (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.scm | 48 |
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.") | |||
| 4417 | (package | 4417 | (package |
| 4418 | (name "python-cvxopt") | 4418 | (name "python-cvxopt") |
| 4419 | (version "1.3.2") | 4419 | (version "1.3.2") |
| 4420 | (source (origin | 4420 | (source |
| 4421 | (method git-fetch) | 4421 | (origin |
| 4422 | (uri (git-reference | 4422 | (method git-fetch) |
| 4423 | (url "https://github.com/cvxopt/cvxopt") | 4423 | (uri (git-reference |
| 4424 | (commit version))) | 4424 | (url "https://github.com/cvxopt/cvxopt") |
| 4425 | (file-name (git-file-name name version)) | 4425 | (commit version))) |
| 4426 | (sha256 | 4426 | (file-name (git-file-name name version)) |
| 4427 | (base32 | 4427 | (sha256 |
| 4428 | "0vdfag3rr906w0gk7vxm2yxfy8y92i4wmqxi82cbykpfp5r82i36")))) | 4428 | (base32 "0vdfag3rr906w0gk7vxm2yxfy8y92i4wmqxi82cbykpfp5r82i36")))) |
| 4429 | (build-system python-build-system) | 4429 | (build-system pyproject-build-system) |
| 4430 | (arguments | 4430 | (arguments |
| 4431 | `(#:phases | 4431 | (list |
| 4432 | (modify-phases %standard-phases | 4432 | #:phases |
| 4433 | (add-after 'unpack 'find-libraries | 4433 | #~(modify-phases %standard-phases |
| 4434 | (lambda* (#:key inputs #:allow-other-keys) | 4434 | (add-after 'unpack 'find-libraries |
| 4435 | (setenv "CVXOPT_BLAS_LIB" "openblas") | 4435 | (lambda* (#:key inputs #:allow-other-keys) |
| 4436 | (setenv "CVXOPT_LAPACK_LIB" "openblas") | 4436 | (setenv "CVXOPT_BLAS_LIB" "openblas") |
| 4437 | (setenv "CVXOPT_BUILD_FFTW" "1") | 4437 | (setenv "CVXOPT_LAPACK_LIB" "openblas") |
| 4438 | (setenv "CVXOPT_BUILD_GLPK" "1") | 4438 | (setenv "CVXOPT_BUILD_FFTW" "1") |
| 4439 | (setenv "CVXOPT_BUILD_GSL" "1") | 4439 | (setenv "CVXOPT_BUILD_GLPK" "1") |
| 4440 | #t))))) | 4440 | (setenv "CVXOPT_BUILD_GSL" "1")))))) |
| 4441 | (inputs | 4441 | (native-inputs (list python-pytest python-setuptools)) |
| 4442 | (list fftw | 4442 | (inputs (list fftw glpk gsl openblas suitesparse)) |
| 4443 | glpk | ||
| 4444 | gsl | ||
| 4445 | openblas | ||
| 4446 | suitesparse)) | ||
| 4447 | (home-page "https://www.cvxopt.org") | 4443 | (home-page "https://www.cvxopt.org") |
| 4448 | (synopsis "Python library for convex optimization") | 4444 | (synopsis "Python library for convex optimization") |
| 4449 | (description | 4445 | (description |
