From 5252199f7f95e43835d9403d6de7698f3a47d994 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 22 Mar 2026 20:00:36 +0000 Subject: [PATCH] python3Packages.distrax: skip failing test --- pkgs/development/python-modules/distrax/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/distrax/default.nix b/pkgs/development/python-modules/distrax/default.nix index 0cd673918890..340305fc63b2 100644 --- a/pkgs/development/python-modules/distrax/default.nix +++ b/pkgs/development/python-modules/distrax/default.nix @@ -20,7 +20,7 @@ pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "distrax"; version = "0.1.7"; pyproject = true; @@ -28,7 +28,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "google-deepmind"; repo = "distrax"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-R6rGGNzup3O6eZ2z4vygYWTjroE/Irt3aog8Op+0hco="; }; @@ -57,6 +57,9 @@ buildPythonPackage rec { pythonImportsCheck = [ "distrax" ]; disabledTests = [ + # execnet.gateway_base.DumpError: can't serialize + "test_raises_on_invalid_input_shape" + # Flaky: AssertionError: 1 not less than 0.7000000000000001 "test_von_mises_sample_uniform_ks_test" @@ -124,7 +127,7 @@ buildPythonPackage rec { meta = { description = "Probability distributions in JAX"; homepage = "https://github.com/deepmind/distrax"; - changelog = "https://github.com/google-deepmind/distrax/releases/tag/v${version}"; + changelog = "https://github.com/google-deepmind/distrax/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ onny ]; badPlatforms = [ @@ -132,4 +135,4 @@ buildPythonPackage rec { lib.systems.inspect.patterns.isDarwin ]; }; -} +})