Files
nixpkgs/pkgs/development/python-modules/chex/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

67 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 rec {
pname = "chex";
version = "0.1.91";
pyproject = true;
src = fetchFromGitHub {
owner = "deepmind";
repo = "chex";
tag = "v${version}";
hash = "sha256-lJ9+kvG7dRtfDVgvkcJ9/jtnX0lMfxY4mmZ290y/74U=";
};
build-system = [
flit-core
];
pythonRelaxDeps = [
"typing_extensions"
];
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/deepmind/chex";
changelog = "https://github.com/google-deepmind/chex/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ ndl ];
};
}