python3.pkgs.ipycanvas: relax build dependencies

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

View File

@ -20,6 +20,16 @@ buildPythonPackage rec {
hash = "sha256-+cOUBoG8ODgzkPjEbqXYRF1uEcbaZITDfYnfWuHawTE=";
};
# We relax dependencies here instead of pulling in a patch because upstream
# has released a new version using hatch-jupyter-builder, but it is not yet
# trivial to upgrade to that.
#
postPatch = ''
substituteInPlace pyproject.toml \
--replace '"jupyterlab==3.*",' "" \
--replace 'jupyter_packaging~=' 'jupyter_packaging>='
'';
nativeBuildInputs = [ jupyter-packaging ];
propagatedBuildInputs = [ ipywidgets numpy pillow ];