Merge pull request #187267 from onny/flax

python310Packages.flax: 0.5.2 -> 0.6.0
This commit is contained in:
Samuel Ainsworth 2022-08-31 12:12:57 -07:00 committed by GitHub
commit 602000a55c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
{ buildPythonPackage
, fetchFromGitHub
, jaxlib
, jax
, keras
, lib
, matplotlib
@ -10,26 +11,40 @@
, pytest-xdist
, pytestCheckHook
, tensorflow
, fetchpatch
, rich
}:
buildPythonPackage rec {
pname = "flax";
version = "0.5.2";
version = "0.6.0";
src = fetchFromGitHub {
owner = "google";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-t24JZ08EmvuAINZC26OQI1icklUhUkfz6ZRKPr2COAw=";
sha256 = "sha256-egTYYFZxhE/Kk7jXRi1HmjCjyFia2LoRigH042isDu0=";
};
patches = [
# Bump rich dependency, should be fixed in releases after 0.6.0
# https://github.com/google/flax/pull/2407
(fetchpatch {
url = "https://github.com/google/flax/commit/72189153f9779022b97858ae747c23fbaf571e3d.patch";
sha256 = "sha256-hKOn/M7qpBM6R1RIJpnXpRoZgIHqkwQZApN4L0fBzIE=";
name = "bump_rich_dependency.patch";
})
];
buildInputs = [ jaxlib ];
propagatedBuildInputs = [
jax
matplotlib
msgpack
numpy
optax
rich
];
pythonImportsCheck = [