python3.pkgs.ipyniivue: patch out jupyterlab build dependency

This commit is contained in:
Theodore Ni 2023-08-22 19:54:55 -07:00
parent 854c0267a3
commit 339c0144f3
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474

View File

@ -21,7 +21,18 @@ buildPythonPackage rec {
hash = "sha256-kym7949VI6C+62p3IOQ2QIzWnuSBcrmySb83oqUwhjI=";
};
nativeBuildInputs = [ hatchling hatch-jupyter-builder ];
# 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 = [
hatchling
hatch-jupyter-builder
];
propagatedBuildInputs = [ ipywidgets jupyter-ui-poll ];