python3Packages.flax: 0.6.0 -> 0.6.1

This commit is contained in:
Samuel Ainsworth 2022-10-24 11:19:04 -07:00
parent 547d127691
commit 9714106447

View file

@ -17,25 +17,15 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "flax"; pname = "flax";
version = "0.6.0"; version = "0.6.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "google"; owner = "google";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
sha256 = "sha256-egTYYFZxhE/Kk7jXRi1HmjCjyFia2LoRigH042isDu0="; sha256 = "sha256-fZiODo+izOwGjCCTvi11GvUG/VQL1DV9bNXKjvIIw4A=";
}; };
patches = [
# Bump rich dependency, should be fixed in releases after 0.6.0
# https://github.com/google/flax/pull/2407
(fetchpatch {
url = "https://github.com/google/flax/commit/72189153f9779022b97858ae747c23fbaf571e3d.patch";
sha256 = "sha256-hKOn/M7qpBM6R1RIJpnXpRoZgIHqkwQZApN4L0fBzIE=";
name = "bump_rich_dependency.patch";
})
];
buildInputs = [ jaxlib ]; buildInputs = [ jaxlib ];
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -76,6 +66,22 @@ buildPythonPackage rec {
"examples/*" "examples/*"
]; ];
disabledTests = [
# See https://github.com/google/flax/issues/2554.
"test_async_save_checkpoints"
"test_jax_array0"
"test_jax_array1"
"test_keep0"
"test_keep1"
"test_optimized_lstm_cell_matches_regular"
"test_overwrite_checkpoints"
"test_save_restore_checkpoints_target_empty"
"test_save_restore_checkpoints_target_none"
"test_save_restore_checkpoints_target_singular"
"test_save_restore_checkpoints_w_float_steps"
"test_save_restore_checkpoints"
];
meta = with lib; { meta = with lib; {
description = "Neural network library for JAX"; description = "Neural network library for JAX";
homepage = "https://github.com/google/flax"; homepage = "https://github.com/google/flax";