Merge pull request #280019 from GaetanLepage/jaxopt

python311Packages.jaxopt: 0.8.2 -> 0.8.3, python311Packages.blackjax: 1.0.0 -> 1.1.0
This commit is contained in:
Nick Cao
2024-01-10 10:11:02 -05:00
committed by GitHub
2 changed files with 13 additions and 12 deletions
@@ -2,6 +2,7 @@
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pytest-xdist
, pytestCheckHook
, setuptools-scm
, fastprogress
@@ -14,16 +15,16 @@
buildPythonPackage rec {
pname = "blackjax";
version = "1.0.0";
version = "1.1.0";
pyproject = true;
disabled = pythonOlder "3.8";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "blackjax-devs";
repo = pname;
repo = "blackjax";
rev = "refs/tags/${version}";
hash = "sha256-hqOKSHyZ/BmOu6MJLeecD3H1BbLbZqywmlBzn3xjQRk=";
hash = "sha256-VAsCDI0rEqx0UJlD82wbZ8KuMi6LOjUlO6YzqnOfAGk=";
};
nativeBuildInputs = [ setuptools-scm ];
@@ -39,7 +40,10 @@ buildPythonPackage rec {
typing-extensions
];
nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs = [
pytestCheckHook
pytest-xdist
];
disabledTestPaths = [ "tests/test_benchmarks.py" ];
disabledTests = [
# too slow
@@ -2,6 +2,7 @@
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pytest-xdist
, pytestCheckHook
, absl-py
, cvxpy
@@ -16,7 +17,7 @@
buildPythonPackage rec {
pname = "jaxopt";
version = "0.8.2";
version = "0.8.3";
format = "setuptools";
disabled = pythonOlder "3.8";
@@ -25,7 +26,7 @@ buildPythonPackage rec {
owner = "google";
repo = "jaxopt";
rev = "refs/tags/jaxopt-v${version}";
hash = "sha256-uVOd3knoku5fKBNXOhCikGtjDuW3TtRqev94OM/8Pgk=";
hash = "sha256-T/BHSnuk3IRuLkBj3Hvb/tFIb7Au25jjQtvwL28OU1U=";
};
propagatedBuildInputs = [
@@ -38,6 +39,7 @@ buildPythonPackage rec {
];
nativeCheckInputs = [
pytest-xdist
pytestCheckHook
cvxpy
optax
@@ -52,11 +54,6 @@ buildPythonPackage rec {
"jaxopt.tree_util"
];
disabledTests = [
# Stack frame issue
"test_bisect"
];
meta = with lib; {
homepage = "https://jaxopt.github.io";
description = "Hardware accelerated, batchable and differentiable optimizers in JAX";