diff --git a/pkgs/development/python-modules/optax/default.nix b/pkgs/development/python-modules/optax/default.nix index 5c48d1a290e4..38868516759f 100644 --- a/pkgs/development/python-modules/optax/default.nix +++ b/pkgs/development/python-modules/optax/default.nix @@ -1,16 +1,20 @@ -{ absl-py +{ lib +, absl-py , buildPythonPackage , chex , fetchFromGitHub , jaxlib -, lib , numpy , callPackage +, pythonOlder }: buildPythonPackage rec { pname = "optax"; version = "0.1.4"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "deepmind"; @@ -24,7 +28,9 @@ buildPythonPackage rec { "testsout" ]; - buildInputs = [ jaxlib ]; + buildInputs = [ + jaxlib + ]; propagatedBuildInputs = [ absl-py @@ -49,8 +55,9 @@ buildPythonPackage rec { }; meta = with lib; { - description = "Optax is a gradient processing and optimization library for JAX."; + description = "Gradient processing and optimization library for JAX"; homepage = "https://github.com/deepmind/optax"; + changelog = "https://github.com/deepmind/optax/releases/tag/v${version}"; license = licenses.asl20; maintainers = with maintainers; [ ndl ]; };