depot/third_party/nixpkgs/pkgs/development/python-modules/chex/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

61 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
absl-py,
jax,
jaxlib,
numpy,
toolz,
typing-extensions,
# tests
cloudpickle,
dm-tree,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "chex";
version = "0.1.87";
pyproject = true;
src = fetchFromGitHub {
owner = "deepmind";
repo = "chex";
rev = "refs/tags/v${version}";
hash = "sha256-TPh7XLWHk0y/VLXxHLANUiDmfveHPeMLks9QKf16doo=";
};
build-system = [ setuptools ];
dependencies = [
absl-py
jax
jaxlib
numpy
toolz
typing-extensions
];
pythonImportsCheck = [ "chex" ];
nativeCheckInputs = [
cloudpickle
dm-tree
pytestCheckHook
];
meta = {
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 = lib.licenses.asl20;
maintainers = with lib.maintainers; [ ndl ];
};
}