blob: 3734c7d0bcd5db6b1e36235500063f5a7a27ccac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{
lib,
buildPythonPackage,
fetchPypi,
jupyterlab,
jupyter-packaging,
}:
buildPythonPackage rec {
pname = "jupyterlab-execute-time";
version = "3.2.0";
pyproject = true;
src = fetchPypi {
pname = "jupyterlab_execute_time";
inherit version;
hash = "sha256-mxO2XCwTm/q7P2/xcGxNM+1aViA6idApdggzThW8nAs=";
};
# jupyterlab is required to build from source but we use the pre-build package
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail '"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 ];
};
}
|