1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 jupyterlab,
6 jupyter-packaging,
7}:
8
9buildPythonPackage rec {
10 pname = "jupyterlab-execute-time";
11 version = "3.2.0";
12 pyproject = true;
13
14 src = fetchPypi {
15 pname = "jupyterlab_execute_time";
16 inherit version;
17 hash = "sha256-mxO2XCwTm/q7P2/xcGxNM+1aViA6idApdggzThW8nAs=";
18 };
19
20 # jupyterlab is required to build from source but we use the pre-build package
21 postPatch = ''
22 substituteInPlace pyproject.toml \
23 --replace-fail '"jupyterlab~=4.0.0"' ""
24 '';
25
26 dependencies = [
27 jupyterlab
28 jupyter-packaging
29 ];
30
31 # has no tests
32 doCheck = false;
33
34 pythonImportsCheck = [ "jupyterlab_execute_time" ];
35
36 meta = {
37 description = "JupyterLab extension for displaying cell timings";
38 homepage = "https://github.com/deshaw/jupyterlab-execute-time";
39 license = lib.licenses.bsd3;
40 maintainers = [ lib.maintainers.vglfr ];
41 };
42}