b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
48 lines
812 B
Nix
48 lines
812 B
Nix
{ absl-py
|
|
, buildPythonPackage
|
|
, dm-tree
|
|
, fetchFromGitHub
|
|
, jax
|
|
, jaxlib
|
|
, lib
|
|
, numpy
|
|
, pytestCheckHook
|
|
, toolz
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "chex";
|
|
version = "0.1.4";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "deepmind";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-FiZElESyOVu1VJxUDNiN6HVADiaubDrGdQHYp2CN8f4=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|