2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
absl-py,
|
|
|
|
cloudpickle,
|
|
|
|
dm-tree,
|
|
|
|
jax,
|
|
|
|
jaxlib,
|
|
|
|
numpy,
|
|
|
|
pytestCheckHook,
|
|
|
|
toolz,
|
|
|
|
typing-extensions,
|
2022-01-03 16:56:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "chex";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.1.86";
|
|
|
|
pyproject = true;
|
2022-01-03 16:56:52 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "deepmind";
|
2023-11-16 04:20:00 +00:00
|
|
|
repo = "chex";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-Z5Ns4fG5pC99I4xdGjDMKX6YZpTtd1y0TWcIOtr7dug=";
|
2022-01-03 16:56:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
dependencies = [
|
2022-01-03 16:56:52 +00:00
|
|
|
absl-py
|
2023-08-22 20:05:09 +00:00
|
|
|
jaxlib
|
2022-01-03 16:56:52 +00:00
|
|
|
jax
|
|
|
|
numpy
|
|
|
|
toolz
|
2023-08-22 20:05:09 +00:00
|
|
|
typing-extensions
|
2022-01-03 16:56:52 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "chex" ];
|
2022-01-03 16:56:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-08-22 20:05:09 +00:00
|
|
|
cloudpickle
|
|
|
|
dm-tree
|
2022-01-03 16:56:52 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Chex is a library of utilities for helping to write reliable JAX code.";
|
|
|
|
homepage = "https://github.com/deepmind/chex";
|
2023-10-19 13:55:26 +00:00
|
|
|
changelog = "https://github.com/google-deepmind/chex/releases/tag/v${version}";
|
2022-01-03 16:56:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ndl ];
|
|
|
|
};
|
|
|
|
}
|