depot/third_party/nixpkgs/pkgs/development/python-modules/chex/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

58 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools,
absl-py,
cloudpickle,
dm-tree,
jax,
jaxlib,
numpy,
pytestCheckHook,
toolz,
typing-extensions,
}:
buildPythonPackage rec {
pname = "chex";
version = "0.1.86";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "deepmind";
repo = "chex";
rev = "refs/tags/v${version}";
hash = "sha256-Z5Ns4fG5pC99I4xdGjDMKX6YZpTtd1y0TWcIOtr7dug=";
};
build-system = [ setuptools ];
dependencies = [
absl-py
jaxlib
jax
numpy
toolz
typing-extensions
];
pythonImportsCheck = [ "chex" ];
nativeCheckInputs = [
cloudpickle
dm-tree
pytestCheckHook
];
meta = with lib; {
description = "Chex is a library of utilities for helping to write reliable JAX code";
homepage = "https://github.com/deepmind/chex";
changelog = "https://github.com/google-deepmind/chex/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ ndl ];
};
}