depot/third_party/nixpkgs/pkgs/development/python-modules/jupyterlab-execute-time/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

41 lines
905 B
Nix

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