
Diff: https://github.com/google-deepmind/treescope/compare/refs/tags/v0.1.8...v0.1.9 Changelog: https://github.com/google-deepmind/treescope/releases/tag/v0.1.9
70 lines
1.2 KiB
Nix
70 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
flit-core,
|
|
|
|
# dependencies
|
|
numpy,
|
|
|
|
# optional-dependencies
|
|
ipython,
|
|
jax,
|
|
palettable,
|
|
|
|
# tests
|
|
absl-py,
|
|
jaxlib,
|
|
omegaconf,
|
|
pydantic,
|
|
pytestCheckHook,
|
|
torch,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "treescope";
|
|
version = "0.1.9";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google-deepmind";
|
|
repo = "treescope";
|
|
tag = "v${version}";
|
|
hash = "sha256-rLrsG7psY3xkuvNtdRULiMWKzIiWZpJ7TVJhwTNGXRQ=";
|
|
};
|
|
|
|
build-system = [ flit-core ];
|
|
|
|
dependencies = [ numpy ];
|
|
|
|
optional-dependencies = {
|
|
notebook = [
|
|
ipython
|
|
jax
|
|
palettable
|
|
];
|
|
};
|
|
|
|
pythonImportsCheck = [ "treescope" ];
|
|
|
|
nativeCheckInputs = [
|
|
absl-py
|
|
jax
|
|
jaxlib
|
|
omegaconf
|
|
pydantic
|
|
pytestCheckHook
|
|
torch
|
|
];
|
|
|
|
meta = {
|
|
description = "Interactive HTML pretty-printer for machine learning research in IPython notebooks";
|
|
homepage = "https://github.com/google-deepmind/treescope";
|
|
changelog = "https://github.com/google-deepmind/treescope/releases/tag/v${version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
|
};
|
|
}
|