From b9beb131ef5c2ecf2130068b983e05edc56d46f3 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Tue, 30 Jan 2024 09:42:06 +0100 Subject: [PATCH] python311Packages.cmdstanpy: add darwin support --- pkgs/development/python-modules/cmdstanpy/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/cmdstanpy/default.nix b/pkgs/development/python-modules/cmdstanpy/default.nix index 41f06c59cc2b..c3c46546695d 100644 --- a/pkgs/development/python-modules/cmdstanpy/default.nix +++ b/pkgs/development/python-modules/cmdstanpy/default.nix @@ -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 ]; }; }