Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions pkgs/development/python-modules/anywidget/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
, hatchling
, importlib-metadata
, ipywidgets
, jupyterlab
, psygnal
, typing-extensions
, watchfiles
Expand All @@ -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 = [
Expand Down
14 changes: 13 additions & 1 deletion pkgs/development/python-modules/bqscales/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
buildPythonPackage rec {
pname = "bqscales";
version = "0.3.1";

format = "pyproject";
disabled = pythonOlder "3.6";

Expand All @@ -22,6 +21,19 @@ buildPythonPackage rec {
hash = "sha256-C+/GLpqYpePngbn5W0MwvpdmVgFZF7aGHyKMgO5XM90=";
};

# 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.
#
# Per https://github.com/bqplot/bqscales/issues/76, jupyterlab is not needed
# as a build dependency right now.
#
postPatch = ''
substituteInPlace pyproject.toml \
--replace '"jupyterlab==3.*",' "" \
--replace 'jupyter_packaging~=' 'jupyter_packaging>='
'';

nativeBuildInputs = [
hatchling
jupyter-packaging
Expand Down
10 changes: 10 additions & 0 deletions pkgs/development/python-modules/ipycanvas/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
Expand Down
13 changes: 12 additions & 1 deletion pkgs/development/python-modules/ipyniivue/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];

Expand Down
8 changes: 8 additions & 0 deletions pkgs/development/python-modules/ipyparallel/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ buildPythonPackage rec {
hash = "sha256-o5ql75VgFwvw6a/typ/wReG5wYMsSTAzd+3Mkc6p+3c=";
};

# 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.0.0,==3.*",' ""
'';

nativeBuildInputs = [
hatchling
];
Expand Down
9 changes: 9 additions & 0 deletions pkgs/development/python-modules/ipytablewidgets/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ buildPythonPackage rec {
hash = "sha256-14vIih+r/PHLxhgG29YtwuosSBLpewD2CluWpH2+pLc=";
};

# Opened https://github.com/progressivis/ipytablewidgets/issues/3 to ask if
# jupyterlab can be updated upstream. (From commits, it looks like it was
# set to this version on purpose.) In the meantime, the build still works.
#
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'jupyterlab>=3.0.0,<3.7' 'jupyterlab>=3.0.0'
'';

nativeBuildInputs = [
jupyter-packaging
jupyterlab
Expand Down