diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index ed83bbb689d5..490cd20e6d16 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -21271,6 +21271,12 @@ githubId = 245573; name = "Dmitry Kalinkin"; }; + vglfr = { + email = "vf.velt@gmail.com"; + github = "vglfr"; + githubId = 20283252; + name = "vglfr"; + }; vgskye = { name = "Skye Green"; email = "me@skye.vg"; diff --git a/pkgs/development/python-modules/jupyterlab-execute-time/default.nix b/pkgs/development/python-modules/jupyterlab-execute-time/default.nix new file mode 100644 index 000000000000..8af2907fe092 --- /dev/null +++ b/pkgs/development/python-modules/jupyterlab-execute-time/default.nix @@ -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"' "" + ''; + + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 49e9ec411015..a8567607cc9f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6428,6 +6428,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 { };