21 buildPythonPackage rec {
26 src = fetchFromGitHub {
30 hash = "sha256-7UPWeo/Q9/tjewaM7HN8/e7U1U1QzAliuk95+9GOi0E=";
38 build-system = [ flit-core ];
47 ] ++ etils.optional-dependencies.epy;
51 cp -R examples $testsout/examples
54 pythonImportsCheck = [ "optax" ];
56 # check in passthru.tests.pytest to escape infinite recursion with flax
60 pytest = callPackage ./tests.nix { };
64 description = "Gradient processing and optimization library for JAX";
65 homepage = "https://github.com/deepmind/optax";
66 changelog = "https://github.com/deepmind/optax/releases/tag/v${version}";
67 license = lib.licenses.asl20;
68 maintainers = with lib.maintainers; [ ndl ];