at 25.11-pre 38 lines 834 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 jupyter-packaging, 6}: 7 8buildPythonPackage rec { 9 pname = "jupyterlab-widgets"; 10 version = "3.0.13"; 11 pyproject = true; 12 13 src = fetchPypi { 14 pname = "jupyterlab_widgets"; 15 inherit version; 16 hash = "sha256-opZtOFMowZQraDqM2WuJuN2CyLj4HdqQK7K8BtRvW+0="; 17 }; 18 19 # jupyterlab is required to build from source but we use the pre-build package 20 postPatch = '' 21 substituteInPlace pyproject.toml \ 22 --replace '"jupyterlab~=4.0"' "" 23 ''; 24 25 nativeBuildInputs = [ jupyter-packaging ]; 26 27 # has no tests 28 doCheck = false; 29 30 pythonImportsCheck = [ "jupyterlab_widgets" ]; 31 32 meta = with lib; { 33 description = "Jupyter Widgets JupyterLab Extension"; 34 homepage = "https://github.com/jupyter-widgets/ipywidgets"; 35 license = licenses.bsd3; 36 maintainers = [ ]; 37 }; 38}