f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
41 lines
905 B
Nix
41 lines
905 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, jupyterlab
|
|
, jupyter-packaging
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jupyterlab-execute-time";
|
|
version = "3.1.2";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "jupyterlab_execute_time";
|
|
inherit version;
|
|
hash = "sha256-DiyGsoNXXh+ieMfpSrA6A/5c0ftNV9Ygs9Tl2/VEdbk=";
|
|
};
|
|
|
|
# jupyterlab is required to build from source but we use the pre-build package
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace '"jupyterlab~=4.0.0"' ""
|
|
'';
|
|
|
|
dependencies = [
|
|
jupyterlab
|
|
jupyter-packaging
|
|
];
|
|
|
|
# has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "jupyterlab_execute_time" ];
|
|
|
|
meta = {
|
|
description = "JupyterLab extension for displaying cell timings";
|
|
homepage = "https://github.com/deshaw/jupyterlab-execute-time";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = [ lib.maintainers.vglfr ];
|
|
};
|
|
}
|