summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhislain Vaillant <ghislain.vaillant@inria.fr>2026-08-01 13:23:21 +0200
committerGhislain Vaillant <ghislain.vaillant@inria.fr>2026-08-03 01:48:32 +0200
commit987d50f67dbb1f4abd510e94cfb15a994ab13c09 (patch)
treebb8facf03a457e3ccea6ce534bcf55aa632944ca
parenta7d4bf2d06d9deb4360c3ed4011ff29766f8ca76 (diff)
openturns: Add otrobopt.
* guix-science/packages/openturns.scm (otrobopt): New variable.
-rw-r--r--guix-science/packages/openturns.scm49
1 files changed, 49 insertions, 0 deletions
diff --git a/guix-science/packages/openturns.scm b/guix-science/packages/openturns.scm
index 818d35b..58f195b 100644
--- a/guix-science/packages/openturns.scm
+++ b/guix-science/packages/openturns.scm
@@ -108,3 +108,52 @@ main goal of this library is giving to specific applications all the
108functionalities needed to treat uncertainties in studies.") 108functionalities needed to treat uncertainties in studies.")
109 (license license:lgpl3))) 109 (license license:lgpl3)))
110 110
111(define-public otrobopt
112 (package
113 (name "otrobopt")
114 (version "0.18")
115 (source
116 (origin
117 (method git-fetch)
118 (uri (git-reference
119 (url "https://github.com/openturns/otrobopt")
120 (commit (string-append "v" version))))
121 (file-name (git-file-name name version))
122 (sha256
123 (base32 "04wcvj5v3bfy7licdbvkhnxv1lcgahnkr1wafxnqjk41m79czrxk"))))
124 (build-system cmake-build-system)
125 (arguments
126 (list
127 #:imported-modules (append %cmake-build-system-modules
128 %pyproject-build-system-modules)
129 #:modules '((guix build cmake-build-system)
130 ((guix build pyproject-build-system)
131 #:prefix py:)
132 (guix build utils))
133 #:phases
134 #~(modify-phases %standard-phases
135 ;; Requires install first.
136 (delete 'check)
137
138 (add-after 'install 'check
139 (lambda* (#:key tests? parallel-tests? #:allow-other-keys)
140 (when tests?
141 (let ((jobs (number->string (min (parallel-job-count) 8))))
142 (invoke "ctest"
143 "--output-on-failure"
144 "-j"
145 (if parallel-tests? jobs "1")
146 "-R"
147 "pyinstallcheck")))))
148
149 (add-before 'check 'add-installed-pythonpath
150 (lambda* (#:key inputs outputs #:allow-other-keys)
151 (py:add-installed-pythonpath inputs outputs))))))
152 (propagated-inputs (list openturns))
153 (native-inputs (list python swig-4.4))
154 (home-page "https://openturns.github.io/otrobopt/master/")
155 (synopsis "Robust optimization module for OpenTURNS")
156 (description
157 "This package provides a module for OpenTURNS to formulate and solve robust
158optimization problems.")
159 (license license:lgpl3)))