push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,96 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools-scm,
# dependencies
fastprogress,
jax,
jaxlib,
jaxopt,
optax,
typing-extensions,
# checks
pytestCheckHook,
pytest-xdist,
stdenv,
}:
buildPythonPackage rec {
pname = "blackjax";
version = "1.2.5";
pyproject = true;
src = fetchFromGitHub {
owner = "blackjax-devs";
repo = "blackjax";
tag = version;
hash = "sha256-2GTjKjLIWFaluTjdWdUF9Iim973y81xv715xspghRZI=";
};
build-system = [ setuptools-scm ];
dependencies = [
fastprogress
jax
jaxlib
jaxopt
optax
typing-extensions
];
nativeCheckInputs = [
pytestCheckHook
pytest-xdist
];
pytestFlags = [
# DeprecationWarning: JAXopt is no longer maintained
"-Wignore::DeprecationWarning"
];
disabledTestPaths = [
"tests/test_benchmarks.py"
# Assertion errors on numerical values
"tests/mcmc/test_integrators.py"
];
disabledTests = [
# too slow
"test_adaptive_tempered_smc"
# AssertionError on numerical values
"test_barker"
"test_mclmc"
"test_mcse4"
"test_normal_univariate"
"test_nuts__with_device"
"test_nuts__with_jit"
"test_nuts__without_device"
"test_nuts__without_jit"
"test_smc_waste_free__with_jit"
# Numerical test (AssertionError)
# First report, when the failure was only happening on aarch64-linux:
# https://github.com/blackjax-devs/blackjax/issues/668
# Second report, when the test started happening on x86_64-linux too after Jax was updated to 0.7.0
# https://github.com/blackjax-devs/blackjax/issues/795
"test_chees_adaptation"
];
pythonImportsCheck = [ "blackjax" ];
meta = {
homepage = "https://blackjax-devs.github.io/blackjax";
description = "Sampling library designed for ease of use, speed and modularity";
changelog = "https://github.com/blackjax-devs/blackjax/releases/tag/${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}