mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
Merge pull request #187267 from onny/flax
python310Packages.flax: 0.5.2 -> 0.6.0
This commit is contained in:
commit
602000a55c
1 changed files with 17 additions and 2 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue