mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-17 10:43:53 +00:00
Diff: https://github.com/google-deepmind/chex/compare/v0.1.91...v0.1.92 Changelog: https://github.com/google-deepmind/chex/releases/tag/v0.1.92
65 lines
1.1 KiB
Nix
65 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
flit-core,
|
|
|
|
# dependencies
|
|
absl-py,
|
|
jax,
|
|
jaxlib,
|
|
numpy,
|
|
toolz,
|
|
typing-extensions,
|
|
|
|
# tests
|
|
cloudpickle,
|
|
dm-tree,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "chex";
|
|
version = "0.1.92";
|
|
pyproject = true;
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google-deepmind";
|
|
repo = "chex";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-PM76Q72Bgyms7dROJkmlpPuDvtqjHLPTDkUYqo08T74=";
|
|
};
|
|
|
|
build-system = [
|
|
flit-core
|
|
];
|
|
|
|
dependencies = [
|
|
absl-py
|
|
jax
|
|
jaxlib
|
|
numpy
|
|
toolz
|
|
typing-extensions
|
|
];
|
|
|
|
pythonImportsCheck = [ "chex" ];
|
|
|
|
nativeCheckInputs = [
|
|
cloudpickle
|
|
dm-tree
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = {
|
|
description = "Library of utilities for helping to write reliable JAX code";
|
|
homepage = "https://github.com/google-deepmind/chex";
|
|
changelog = "https://github.com/google-deepmind/chex/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ ndl ];
|
|
};
|
|
})
|