summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'gnu')
-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.")
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