diff options
| author | Ghislain Vaillant <ghislain.vaillant@inria.fr> | 2026-08-01 14:17:09 +0200 |
|---|---|---|
| committer | Ghislain Vaillant <ghislain.vaillant@inria.fr> | 2026-08-03 01:48:33 +0200 |
| commit | cd3a1bbf15495eee418235e618fd01b386b6eade (patch) | |
| tree | 228d9f8208d9b9c0e413c04df28b2ca00ef4a1d6 | |
| parent | 5ad82e3ceb6ea784583f90e2611f9734257b7c92 (diff) | |
openturns: Add otmixmod.
* guix-science/packages/openturns.scm (otmixmod): New variable.
| -rw-r--r-- | guix-science/packages/openturns.scm | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/guix-science/packages/openturns.scm b/guix-science/packages/openturns.scm index 58f195b..c8c6ad2 100644 --- a/guix-science/packages/openturns.scm +++ b/guix-science/packages/openturns.scm | |||
| @@ -12,6 +12,7 @@ | |||
| 12 | #:use-module (gnu packages python-xyz) | 12 | #:use-module (gnu packages python-xyz) |
| 13 | #:use-module (gnu packages swig) | 13 | #:use-module (gnu packages swig) |
| 14 | #:use-module (gnu packages xml) | 14 | #:use-module (gnu packages xml) |
| 15 | #:use-module (guix-science packages statistics) | ||
| 15 | #:use-module (guix build-system cmake) | 16 | #:use-module (guix build-system cmake) |
| 16 | #:use-module (guix build-system pyproject) | 17 | #:use-module (guix build-system pyproject) |
| 17 | #:use-module (guix download) | 18 | #:use-module (guix download) |
| @@ -108,6 +109,57 @@ main goal of this library is giving to specific applications all the | |||
| 108 | functionalities needed to treat uncertainties in studies.") | 109 | functionalities needed to treat uncertainties in studies.") |
| 109 | (license license:lgpl3))) | 110 | (license license:lgpl3))) |
| 110 | 111 | ||
| 112 | (define-public otmixmod | ||
| 113 | (package | ||
| 114 | (name "otmixmod") | ||
| 115 | (version "0.21") | ||
| 116 | (source | ||
| 117 | (origin | ||
| 118 | (method git-fetch) | ||
| 119 | (uri (git-reference | ||
| 120 | (url "https://github.com/openturns/otmixmod") | ||
| 121 | (commit (string-append "v" version)))) | ||
| 122 | (file-name (git-file-name name version)) | ||
| 123 | (sha256 | ||
| 124 | (base32 "0h1nk1yjfg5sa0ib4282l8805p1sv5cnhr28sgxbwmk7rbdcq431")))) | ||
| 125 | (build-system cmake-build-system) | ||
| 126 | (arguments | ||
| 127 | (list | ||
| 128 | #:imported-modules (append %cmake-build-system-modules | ||
| 129 | %pyproject-build-system-modules) | ||
| 130 | #:modules '((guix build cmake-build-system) | ||
| 131 | ((guix build pyproject-build-system) | ||
| 132 | #:prefix py:) | ||
| 133 | (guix build utils)) | ||
| 134 | #:phases | ||
| 135 | #~(modify-phases %standard-phases | ||
| 136 | ;; Requires install first. | ||
| 137 | (delete 'check) | ||
| 138 | |||
| 139 | (add-after 'install 'check | ||
| 140 | (lambda* (#:key tests? parallel-tests? #:allow-other-keys) | ||
| 141 | (when tests? | ||
| 142 | (let ((jobs (number->string (min (parallel-job-count) 8)))) | ||
| 143 | (invoke "ctest" | ||
| 144 | "--output-on-failure" | ||
| 145 | "-j" | ||
| 146 | (if parallel-tests? jobs "1") | ||
| 147 | "-R" | ||
| 148 | "pyinstallcheck"))))) | ||
| 149 | |||
| 150 | (add-before 'check 'add-installed-pythonpath | ||
| 151 | (lambda* (#:key inputs outputs #:allow-other-keys) | ||
| 152 | (py:add-installed-pythonpath inputs outputs)))))) | ||
| 153 | (propagated-inputs (list openturns)) | ||
| 154 | (inputs (list mixmod)) | ||
| 155 | (native-inputs (list python swig-4.4)) | ||
| 156 | (home-page "https://openturns.github.io/otmixmod/master/") | ||
| 157 | (synopsis "Robust optimization module for OpenTURNS") | ||
| 158 | (description | ||
| 159 | "This package provides a module for OpenTURNS to formulate and solve robust | ||
| 160 | optimization problems.") | ||
| 161 | (license license:gpl3))) | ||
| 162 | |||
| 111 | (define-public otrobopt | 163 | (define-public otrobopt |
| 112 | (package | 164 | (package |
| 113 | (name "otrobopt") | 165 | (name "otrobopt") |
