2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
absl-py,
|
|
|
|
buildPythonPackage,
|
|
|
|
cached-property,
|
|
|
|
etils,
|
|
|
|
fetchPypi,
|
|
|
|
flit-core,
|
|
|
|
importlib-resources,
|
|
|
|
jax,
|
|
|
|
jaxlib,
|
|
|
|
msgpack,
|
|
|
|
nest-asyncio,
|
|
|
|
numpy,
|
|
|
|
protobuf,
|
|
|
|
pytest-xdist,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pyyaml,
|
|
|
|
tensorstore,
|
|
|
|
typing-extensions,
|
2024-02-29 20:09:43 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "orbax-checkpoint";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.5.9";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "orbax_checkpoint";
|
|
|
|
inherit version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-H96IkUM3IxV79uddNBCU0dq+0dvPx8/Ps4HeCItGi2A=";
|
2024-02-29 20:09:43 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ flit-core ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2024-02-29 20:09:43 +00:00
|
|
|
absl-py
|
|
|
|
cached-property
|
|
|
|
etils
|
|
|
|
importlib-resources
|
|
|
|
jax
|
|
|
|
jaxlib
|
|
|
|
msgpack
|
|
|
|
nest-asyncio
|
|
|
|
numpy
|
|
|
|
protobuf
|
|
|
|
pyyaml
|
|
|
|
tensorstore
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytest-xdist
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"orbax"
|
2024-04-21 15:54:59 +00:00
|
|
|
"orbax.checkpoint"
|
2024-02-29 20:09:43 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# Circular dependency flax
|
|
|
|
"orbax/checkpoint/transform_utils_test.py"
|
|
|
|
"orbax/checkpoint/utils_test.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Orbax provides common utility libraries for JAX users";
|
|
|
|
homepage = "https://github.com/google/orbax/tree/main/checkpoint";
|
|
|
|
changelog = "https://github.com/google/orbax/blob/${version}/CHANGELOG.md";
|
|
|
|
license = licenses.asl20;
|
2024-04-21 15:54:59 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-02-29 20:09:43 +00:00
|
|
|
};
|
|
|
|
}
|