python312Packages.dm-haiku: cleanup & disable on python 3.13 (#385066)

Nick Cao 319d366f 9d52ae0f

Changed files
+17 -5
pkgs
development
python-modules
dm-haiku
+17 -5
pkgs/development/python-modules/dm-haiku/default.nix
···
{
lib,
buildPythonPackage,
+
pythonAtLeast,
fetchFromGitHub,
fetchpatch,
+
+
# build-system
setuptools,
+
+
# dependencies
absl-py,
-
flax,
-
jax,
jaxlib,
jmp,
numpy,
tabulate,
+
+
# optional-dependencies
+
jax,
+
flax,
+
+
# tests
pytest-xdist,
pytestCheckHook,
bsuite,
···
pname = "dm-haiku";
version = "0.0.13";
pyproject = true;
+
+
# ImportError: `haiku.experimental.flax` features require `flax` to be installed.
+
disabled = pythonAtLeast "3.13";
src = fetchFromGitHub {
owner = "deepmind";
···
dontInstall = true;
});
-
meta = with lib; {
+
meta = {
description = "Haiku is a simple neural network library for JAX developed by some of the authors of Sonnet";
homepage = "https://github.com/deepmind/dm-haiku";
-
license = licenses.asl20;
-
maintainers = with maintainers; [ ndl ];
+
license = lib.licenses.asl20;
+
maintainers = with lib.maintainers; [ ndl ];
};
};
in