1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

Merge pull request #316237 from vglfr/create-jupyterlab-execute-time

Create jupyterlab execute time
This commit is contained in:
Peder Bergebakken Sundt 2024-07-22 16:06:16 +02:00 committed by GitHub
commit 380a4bffeb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 49 additions and 0 deletions

View file

@ -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";

View file

@ -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 ];
};
}

View file

@ -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 { };