Merge pull request #284963 from wegank/cmdstanpy-darwin

python311Packages.{cmdstanpy,prophet}: add darwin support
This commit is contained in:
Weijia Wang
2024-02-04 13:18:12 +01:00
committed by GitHub
2 changed files with 3 additions and 2 deletions
@@ -11,6 +11,7 @@
, stanio
, xarray
, pytestCheckHook
, stdenv
}:
buildPythonPackage rec {
@@ -75,6 +76,8 @@ buildPythonPackage rec {
# These tests use the flag -DSTAN_THREADS which doesn't work in cmdstan (missing file)
"test_multi_proc_threads"
"test_compile_force"
] ++ lib.optionals stdenv.isDarwin [
"test_init_types" # CmdStan error: error during processing Operation not permitted
];
pythonImportsCheck = [ "cmdstanpy" ];
@@ -84,7 +87,6 @@ buildPythonPackage rec {
description = "A lightweight interface to Stan for Python users";
changelog = "https://github.com/stan-dev/cmdstanpy/releases/tag/v${version}";
license = lib.licenses.bsd3;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ tomasajt ];
};
}
@@ -66,6 +66,5 @@ buildPythonPackage rec {
homepage = "https://facebook.github.io/prophet/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ tomasajt ];
platforms = lib.platforms.linux; # cmdstanpy doesn't currently build on darwin
};
}