2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
56 lines
1,023 B
Nix
56 lines
1,023 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, absl-py
|
|
, cloudpickle
|
|
, dm-tree
|
|
, jax
|
|
, jaxlib
|
|
, numpy
|
|
, pytestCheckHook
|
|
, toolz
|
|
, typing-extensions
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "chex";
|
|
version = "0.1.84";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "deepmind";
|
|
repo = "chex";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-LsUMvSMVGjqZuFDcb+/61RtFxweeG6bSFzmJUUMv6rA=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
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 ];
|
|
};
|
|
}
|