python3Packages.elegy: 0.8.4 -> 0.8.6

This commit is contained in:
Samuel Ainsworth 2022-03-29 22:13:33 +00:00
parent ae8db40906
commit cbe8c40565

View file

@ -22,16 +22,24 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "elegy"; pname = "elegy";
version = "0.8.4"; version = "0.8.6";
format = "pyproject"; format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "poets-ai"; owner = "poets-ai";
repo = pname; repo = pname;
rev = version; 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 = [ nativeBuildInputs = [
poetry poetry
]; ];