From cbe8c40565b03d1b6490a7bb181ef90789218278 Mon Sep 17 00:00:00 2001 From: Samuel Ainsworth Date: Tue, 29 Mar 2022 22:13:33 +0000 Subject: [PATCH] python3Packages.elegy: 0.8.4 -> 0.8.6 --- pkgs/development/python-modules/elegy/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/elegy/default.nix b/pkgs/development/python-modules/elegy/default.nix index 5b0cb293c0a..a4d17a830e4 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 ];