diff --git a/pkgs/development/python-modules/flax/default.nix b/pkgs/development/python-modules/flax/default.nix index 9e9a91f0fd70..119b841cde81 100644 --- a/pkgs/development/python-modules/flax/default.nix +++ b/pkgs/development/python-modules/flax/default.nix @@ -13,14 +13,12 @@ numpy, optax, orbax-checkpoint, + orbax-export, pyyaml, rich, tensorstore, typing-extensions, - # optional-dependencies - matplotlib, - # tests cloudpickle, keras, @@ -36,16 +34,16 @@ tomlq, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "flax"; - version = "0.12.2"; + version = "0.12.6"; pyproject = true; src = fetchFromGitHub { owner = "google"; repo = "flax"; - tag = "v${version}"; - hash = "sha256-Wdfc35/iah98C5WNYZWiAd2FJUJlyGLJ8xELpuYD3GU="; + tag = "v${finalAttrs.version}"; + hash = "sha256-rIDfF9W8cxF0njH4e4uhqURQ0C4N8Boe76u6meMgC34="; }; build-system = [ @@ -60,6 +58,7 @@ buildPythonPackage rec { numpy optax orbax-checkpoint + orbax-export pyyaml rich tensorstore @@ -67,10 +66,6 @@ buildPythonPackage rec { typing-extensions ]; - optional-dependencies = { - all = [ matplotlib ]; - }; - pythonImportsCheck = [ "flax" ]; nativeCheckInputs = [ @@ -132,8 +127,8 @@ buildPythonPackage rec { meta = { description = "Neural network library for JAX"; homepage = "https://github.com/google/flax"; - changelog = "https://github.com/google/flax/releases/tag/v${version}"; + changelog = "https://github.com/google/flax/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ ndl ]; }; -} +})