saunafs: 4.6.0 -> 4.7.0 (#379649)
[NixPkgs.git] / pkgs / development / python-modules / jupyterlab-execute-time / default.nix
blob3734c7d0bcd5db6b1e36235500063f5a7a27ccac
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   jupyterlab,
6   jupyter-packaging,
7 }:
9 buildPythonPackage rec {
10   pname = "jupyterlab-execute-time";
11   version = "3.2.0";
12   pyproject = true;
14   src = fetchPypi {
15     pname = "jupyterlab_execute_time";
16     inherit version;
17     hash = "sha256-mxO2XCwTm/q7P2/xcGxNM+1aViA6idApdggzThW8nAs=";
18   };
20   # jupyterlab is required to build from source but we use the pre-build package
21   postPatch = ''
22     substituteInPlace pyproject.toml \
23       --replace-fail '"jupyterlab~=4.0.0"' ""
24   '';
26   dependencies = [
27     jupyterlab
28     jupyter-packaging
29   ];
31   # has no tests
32   doCheck = false;
34   pythonImportsCheck = [ "jupyterlab_execute_time" ];
36   meta = {
37     description = "JupyterLab extension for displaying cell timings";
38     homepage = "https://github.com/deshaw/jupyterlab-execute-time";
39     license = lib.licenses.bsd3;
40     maintainers = [ lib.maintainers.vglfr ];
41   };