about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2024-06-09 17:52:17 +0200
committerGitHub <noreply@github.com>2024-06-09 17:52:17 +0200
commitbff605542a3743e921b09425d4675a2ba5ac3a1c (patch)
tree886b6923c39b30036b3eead6c32b20ab4658a9f5 /pkgs
parent926be0145878c2b29cd869b463ba1f6868f58e60 (diff)
parent933e1513bd5bc0b8dc7efb67cca5e6d66dae640d (diff)
Merge pull request #317077 from r-ryantm/auto-update/stanc
stanc: 2.34.0 -> 2.35.0
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/by-name/st/stanc/package.nix4
-rw-r--r--pkgs/development/compilers/cmdstan/default.nix4
-rw-r--r--pkgs/development/python-modules/cmdstanpy/default.nix13
3 files changed, 15 insertions, 6 deletions
diff --git a/pkgs/by-name/st/stanc/package.nix b/pkgs/by-name/st/stanc/package.nix
index e5e6f79eb8cdc..93f8c383f6e7f 100644
--- a/pkgs/by-name/st/stanc/package.nix
+++ b/pkgs/by-name/st/stanc/package.nix
@@ -6,7 +6,7 @@
 
 ocamlPackages.buildDunePackage rec {
   pname = "stanc";
-  version = "2.34.0";
+  version = "2.35.0";
 
   minimalOCamlVersion = "4.12";
   duneVersion = "3";
@@ -15,7 +15,7 @@ ocamlPackages.buildDunePackage rec {
     owner = "stan-dev";
     repo = "stanc3";
     rev = "v${version}";
-    hash = "sha256-ixZCix3oLZhzs08JbmbNCO0lhAu1Jf+KnpHNKlU/FaA=";
+    hash = "sha256-QN/yY4tn0U5yOE0FKkOvvEFXDaj5GDBdeqI2UqjVN2c=";
   };
 
   nativeBuildInputs = with ocamlPackages; [ menhir ];
diff --git a/pkgs/development/compilers/cmdstan/default.nix b/pkgs/development/compilers/cmdstan/default.nix
index 817234f799915..a6b6833289b7c 100644
--- a/pkgs/development/compilers/cmdstan/default.nix
+++ b/pkgs/development/compilers/cmdstan/default.nix
@@ -11,14 +11,14 @@
 
 stdenv.mkDerivation rec {
   pname = "cmdstan";
-  version = "2.34.1";
+  version = "2.35.0";
 
   src = fetchFromGitHub {
     owner = "stan-dev";
     repo = pname;
     rev = "v${version}";
     fetchSubmodules = true;
-    hash = "sha256-gze8kd5zSs9nUlSY7AJwpx+jnc9Y21ahzDJmynlqm1Y=";
+    hash = "sha256-bmzkXbR4KSnpfXjs2MAx8mbNSbNrIWDP/O8S+JGWrcg=";
   };
 
   postPatch = ''
diff --git a/pkgs/development/python-modules/cmdstanpy/default.nix b/pkgs/development/python-modules/cmdstanpy/default.nix
index dfa19b74fb62a..a2f468f545202 100644
--- a/pkgs/development/python-modules/cmdstanpy/default.nix
+++ b/pkgs/development/python-modules/cmdstanpy/default.nix
@@ -2,6 +2,7 @@
   lib,
   buildPythonPackage,
   fetchFromGitHub,
+  fetchpatch,
   substituteAll,
   cmdstan,
   pythonRelaxDepsHook,
@@ -17,14 +18,14 @@
 
 buildPythonPackage rec {
   pname = "cmdstanpy";
-  version = "1.2.1";
+  version = "1.2.3";
   pyproject = true;
 
   src = fetchFromGitHub {
     owner = "stan-dev";
     repo = "cmdstanpy";
     rev = "refs/tags/v${version}";
-    hash = "sha256-q+AFhWEzjYElJpiHT4h6YfZrwZJ56pv+8R+001vREyQ=";
+    hash = "sha256-PV7W1H4QYIOx1EHrGljrGUhCH1Y8ZPd9gEtCocc7x64=";
   };
 
   patches = [
@@ -32,6 +33,11 @@ buildPythonPackage rec {
       src = ./use-nix-cmdstan-path.patch;
       cmdstan = "${cmdstan}/opt/cmdstan";
     })
+    # Fix seed-dependent tests
+    (fetchpatch {
+      url = "https://github.com/stan-dev/cmdstanpy/commit/c72acd0b8123c02b47d5d583bdd7d8408b04562c.patch";
+      hash = "sha256-cliyDDko4spYa62DMwWBavy5pePkofJo4Kf8I0RzueM=";
+    })
   ];
 
   postPatch = ''
@@ -75,6 +81,9 @@ buildPythonPackage rec {
       # These tests use the flag -DSTAN_THREADS which doesn't work in cmdstan (missing file)
       "test_multi_proc_threads"
       "test_compile_force"
+      # These tests require a writeable cmdstan source directory
+      "test_pathfinder_threads"
+      "test_save_profile"
     ]
     ++ lib.optionals stdenv.isDarwin [
       "test_init_types" # CmdStan error: error during processing Operation not permitted