about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/anywidget/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/anywidget/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/anywidget/default.nix10
1 files changed, 8 insertions, 2 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/anywidget/default.nix b/nixpkgs/pkgs/development/python-modules/anywidget/default.nix
index d993af0654f8..f96ef47e7332 100644
--- a/nixpkgs/pkgs/development/python-modules/anywidget/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/anywidget/default.nix
@@ -7,7 +7,6 @@
 , hatchling
 , importlib-metadata
 , ipywidgets
-, jupyterlab
 , psygnal
 , typing-extensions
 , watchfiles
@@ -25,10 +24,17 @@ buildPythonPackage rec {
     hash = "sha256-OUKxmYceEKURJeQTVI7oLT4SdZM90V7BoZf0UykkEV4=";
   };
 
+  # We do not need the jupyterlab build dependency, because we do not need to
+  # build any JS components; these are present already in the PyPI artifact.
+  #
+  postPatch = ''
+    substituteInPlace pyproject.toml \
+      --replace '"jupyterlab==3.*"' ""
+  '';
+
   nativeBuildInputs = [
     hatch-jupyter-builder
     hatchling
-    jupyterlab
   ];
 
   propagatedBuildInputs = [