21 # tests take an hour to build on a 48-core machine
23 , enablePython ? false
27 stdenv.mkDerivation rec {
31 src = fetchFromGitHub {
35 sha256 = "sha256-Lg42QqsHYFxeUjZjYFVJFxeJv2MzOpjoShfbIg/095A=";
38 nativeBuildInputs = [ cmake ] ++ lib.optional enablePython python3Packages.sphinx;
54 ] ++ lib.optionals enablePython [
55 python3Packages.python
56 python3Packages.matplotlib
57 python3Packages.psutil
59 ] ++ lib.optional stdenv.isDarwin Accelerate;
62 "-DOPENTURNS_SYSCONFIG_PATH=$out/etc"
63 "-DCMAKE_UNITY_BUILD=ON"
64 "-DCMAKE_UNITY_BUILD_BATCH_SIZE=32"
65 "-DSWIG_COMPILE_FLAGS='-O1'"
66 "-DUSE_SPHINX=${if enablePython then "ON" else "OFF"}"
67 "-DBUILD_PYTHON=${if enablePython then "ON" else "OFF"}"
72 checkTarget = "tests check";
75 description = "Multivariate probabilistic modeling and uncertainty treatment library";
76 license = with licenses; [ lgpl3 gpl3 ];
77 homepage = "https://openturns.github.io/www/";
78 changelog = "https://github.com/openturns/openturns/raw/v${version}/ChangeLog";
79 maintainers = with maintainers; [ gdinh ];
80 platforms = platforms.unix;