From 862aa989eca9b4517f6a769b27c70a1975109f4e Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 26 Dec 2025 18:18:03 +0000 Subject: [PATCH] python3Packages.pymc: 5.26.1 -> 5.27.0 Diff: https://github.com/pymc-devs/pymc/compare/v5.26.1...v5.27.0 Changelog: https://github.com/pymc-devs/pymc/releases/tag/v5.27.0 --- pkgs/development/python-modules/pymc/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pymc/default.nix b/pkgs/development/python-modules/pymc/default.nix index a017f9320c59..feb82d14628f 100644 --- a/pkgs/development/python-modules/pymc/default.nix +++ b/pkgs/development/python-modules/pymc/default.nix @@ -18,18 +18,20 @@ scipy, threadpoolctl, typing-extensions, + + writableTmpDirAsHomeHook, }: buildPythonPackage rec { pname = "pymc"; - version = "5.26.1"; + version = "5.27.0"; pyproject = true; src = fetchFromGitHub { owner = "pymc-devs"; repo = "pymc"; tag = "v${version}"; - hash = "sha256-j1v8MzAFfOmkN7pDcF91dS5Xprls8qfTQHWdaFUO4GU="; + hash = "sha256-wBeWydrHrF+wNZnqWa2k8tCaUvjcoiSrmY85LUhrQds="; }; build-system = [ @@ -50,6 +52,13 @@ buildPythonPackage rec { typing-extensions ]; + nativeBuildInputs = [ + # Arviz (imported by pymc) wants to write a stamp file to the homedir at import time. + # Without $HOME being writable, `pythonImportsCheck` fails. + # https://github.com/arviz-devs/arviz/commit/4db612908f588d89bb5bfb6b83a08ada3d54fd02 + writableTmpDirAsHomeHook + ]; + # The test suite is computationally intensive and test failures are not # indicative for package usability hence tests are disabled by default. doCheck = false;