diff --git a/pkgs/development/python-modules/elegy/default.nix b/pkgs/development/python-modules/elegy/default.nix index 5b0cb293c0a3..a4d17a830e4d 100644 --- a/pkgs/development/python-modules/elegy/default.nix +++ b/pkgs/development/python-modules/elegy/default.nix @@ -22,16 +22,24 @@ buildPythonPackage rec { pname = "elegy"; - version = "0.8.4"; + version = "0.8.6"; format = "pyproject"; src = fetchFromGitHub { owner = "poets-ai"; repo = pname; rev = version; - sha256 = "11w8lgl31b52w2qri8j8cgzd30sn8i3769g8nkkshvgkjgca9r4g"; + hash = "sha256-FZmLriYhsX+zyQKCtCjbOy6MH+AvjzHRNUyaDSXGlLI="; }; + # The cloudpickle constraint is too strict. wandb is marked as an optional + # dependency but `buildPythonPackage` doesn't seem to respect that setting. + postPatch = '' + substituteInPlace pyproject.toml \ + --replace 'cloudpickle = "^1.5.0"' 'cloudpickle = "*"' \ + --replace 'wandb = { version = "^0.12.10", optional = true }' "" + ''; + nativeBuildInputs = [ poetry ];