diff --git a/pkgs/development/python-modules/optax/default.nix b/pkgs/development/python-modules/optax/default.nix index dd36a90864f22..f66b3ec43496f 100644 --- a/pkgs/development/python-modules/optax/default.nix +++ b/pkgs/development/python-modules/optax/default.nix @@ -3,6 +3,7 @@ , buildPythonPackage , chex , fetchFromGitHub +, flit-core , jaxlib , numpy , callPackage @@ -11,8 +12,8 @@ buildPythonPackage rec { pname = "optax"; - version = "0.2.1"; - format = "setuptools"; + version = "0.2.2"; + format = "pyproject"; disabled = pythonOlder "3.7"; @@ -20,7 +21,7 @@ buildPythonPackage rec { owner = "deepmind"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-vimsVZV5Z11euLxsu998pMQZ0hG3xl96D3h9iONtl/E="; + hash = "sha256-sBiKUuQR89mttc9Njrh1aeUJOYdlcF7Nlj3/+Y7OMb4="; }; outputs = [ @@ -28,6 +29,10 @@ buildPythonPackage rec { "testsout" ]; + nativeBuildInputs = [ + flit-core + ]; + buildInputs = [ jaxlib ];