depot/third_party/nixpkgs/pkgs/development/python-modules/chex/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

48 lines
802 B
Nix

{ absl-py
, buildPythonPackage
, dm-tree
, fetchFromGitHub
, jax
, jaxlib
, lib
, numpy
, pytestCheckHook
, toolz
}:
buildPythonPackage rec {
pname = "chex";
version = "0.1.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "deepmind";
repo = pname;
rev = "v${version}";
hash = "sha256-NtZYOHByKBcKmhRaNULwaQqxfoPRmgbtJ3cFHNfy4E8=";
};
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 ];
};
}