mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
Diff: https://github.com/rerun-io/rerun/compare/0.32.2...0.33.0 Changelog: https://github.com/rerun-io/rerun/blob/0.33.0/CHANGELOG.md
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{
|
|
buildPythonPackage,
|
|
rerun,
|
|
fetchPypi,
|
|
|
|
# dependencies
|
|
anywidget,
|
|
ipykernel,
|
|
jupyter-ui-poll,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "rerun-notebook";
|
|
inherit (rerun) version;
|
|
format = "wheel";
|
|
__structuredAttrs = true;
|
|
|
|
# Building this package from source is very cumbersome (it requires a wasm web-viewer
|
|
# cross-compile via cargo + an npm/esbuild bundle). Using the upstream wheel for now.
|
|
src = fetchPypi {
|
|
pname = "rerun_notebook";
|
|
inherit (finalAttrs) version;
|
|
format = "wheel";
|
|
python = "py2.py3";
|
|
hash = "sha256-GDgqFShq40hcptQPie9pwyZFed/9kBmvke5/OwfHl6M=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
# Upstream pins ipykernel<7.0.0 to dodge ipython/ipykernel#1450.
|
|
"ipykernel"
|
|
];
|
|
dependencies = [
|
|
anywidget
|
|
ipykernel
|
|
jupyter-ui-poll
|
|
];
|
|
|
|
pythonImportsCheck = [ "rerun_notebook" ];
|
|
|
|
meta = {
|
|
description = "Implementation helper for running rerun-sdk in notebooks";
|
|
homepage = "https://github.com/rerun-io/rerun/tree/main/rerun_notebook";
|
|
inherit (rerun.meta)
|
|
changelog
|
|
license
|
|
maintainers
|
|
;
|
|
};
|
|
})
|