mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
Merge pull request #316237 from vglfr/create-jupyterlab-execute-time
Create jupyterlab execute time
This commit is contained in:
commit
380a4bffeb
|
@ -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";
|
||||
|
|
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue