python312Packages.jupyterlab-execute-time: init at 3.1.2

This commit is contained in:
Oleksii Dorozhkin
2024-05-31 21:37:38 +02:00
parent 441a99263f
commit 806a3556e0
2 changed files with 43 additions and 0 deletions
@@ -0,0 +1,41 @@
{ 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"' ""
'';
nativeBuildInputs = [
jupyterlab
jupyter-packaging
];
# has no tests
doCheck = false;
pythonImportsCheck = [ "jupyterlab_execute_time" ];
meta = with lib; {
description = "A JupyterLab extension for displaying cell timings";
homepage = "https://github.com/deshaw/jupyterlab-execute-time";
license = licenses.bsd3;
maintainers = with maintainers; [ vglfr ];
};
}
+2
View File
@@ -6242,6 +6242,8 @@ self: super: with self; {
jupyterlab = callPackage ../development/python-modules/jupyterlab { };
jupyterlab-execute-time = callPackage ../development/python-modules/jupyterlab-execute-time { };
jupyterlab-git = callPackage ../development/python-modules/jupyterlab-git { };
jupyterlab-pygments = callPackage ../development/python-modules/jupyterlab-pygments { };