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 {
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
];