2022-01-03 16:56:52 +00:00
|
|
|
{ absl-py
|
|
|
|
, buildPythonPackage
|
|
|
|
, dm-tree
|
|
|
|
, fetchFromGitHub
|
|
|
|
, jax
|
|
|
|
, jaxlib
|
|
|
|
, lib
|
|
|
|
, numpy
|
|
|
|
, pytestCheckHook
|
|
|
|
, toolz
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "chex";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "0.1.2";
|
2022-01-03 16:56:52 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "deepmind";
|
|
|
|
repo = pname;
|
2022-04-15 01:41:22 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-NtZYOHByKBcKmhRaNULwaQqxfoPRmgbtJ3cFHNfy4E8=";
|
2022-01-03 16:56:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
absl-py
|
|
|
|
dm-tree
|
|
|
|
jax
|
|
|
|
numpy
|
|
|
|
toolz
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"chex"
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
jaxlib
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Chex is a library of utilities for helping to write reliable JAX code.";
|
|
|
|
homepage = "https://github.com/deepmind/chex";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ndl ];
|
|
|
|
};
|
|
|
|
}
|