23 runTests ? false, # tests take an hour to build on a 48-core machine
28 inherit (darwin.apple_sdk.frameworks) Accelerate;
30 stdenv.mkDerivation (finalAttrs: {
34 src = fetchFromGitHub {
37 rev = "v${finalAttrs.version}";
38 hash = "sha256-csl5cZvxU8fdLKvh04ZWKizClrHqF79c7tAMSejo2lk=";
44 ++ lib.optionals enablePython [ python3Packages.sphinx ];
47 (lib.getLib primesieve)
62 ++ lib.optionals enablePython [
64 python3Packages.matplotlib
65 python3Packages.psutil
66 python3Packages.python
68 ++ lib.optionals stdenv.isDarwin [
73 (lib.cmakeBool "BUILD_PYTHON" enablePython)
74 (lib.cmakeBool "CMAKE_UNITY_BUILD" true)
75 (lib.cmakeBool "USE_SPHINX" enablePython)
76 (lib.cmakeFeature "CMAKE_UNITY_BUILD_BATCH_SIZE" "32")
77 (lib.cmakeFeature "SWIG_COMPILE_FLAGS" "-O1")
78 (lib.cmakeOptionType "PATH" "OPENTURNS_SYSCONFIG_PATH" "${placeholder "out"}/etc")
81 checkTarget = lib.concatStringsSep " " [
91 homepage = "https://openturns.github.io/www/";
92 description = "Multivariate probabilistic modeling and uncertainty treatment library";
93 changelog = "https://github.com/openturns/openturns/raw/v${finalAttrs.version}/ChangeLog";
94 license = with lib.licenses; [ lgpl3Plus gpl3Plus ];
95 maintainers = with lib.maintainers; [ gdinh ];
96 platforms = lib.platforms.unix;