From 2e80470a1122a2120be91013feba0ab1bfbef442 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Mon, 21 Aug 2023 21:10:19 -0700 Subject: [PATCH] python3.pkgs.jupytext: relax build dependencies --- .../python-modules/jupytext/default.nix | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/jupytext/default.nix b/pkgs/development/python-modules/jupytext/default.nix index d2111b1aecef..030035f744cf 100644 --- a/pkgs/development/python-modules/jupytext/default.nix +++ b/pkgs/development/python-modules/jupytext/default.nix @@ -14,7 +14,9 @@ , pytestCheckHook , pythonOlder , pyyaml +, setuptools , toml +, wheel }: buildPythonPackage rec { @@ -31,9 +33,23 @@ buildPythonPackage rec { hash = "sha256-M4BoST18sf1C1lwhFkp4a0B3fc0VKerwuVEIfwkD7i0="; }; - buildInputs = [ + # Follow https://github.com/mwouts/jupytext/pull/1119 to see if the patch + # relaxing jupyter_packaging version can be cleaned up. + # + # Follow https://github.com/mwouts/jupytext/pull/1077 to see when the patch + # relaxing jupyterlab version can be cleaned up. + # + postPatch = '' + substituteInPlace pyproject.toml \ + --replace 'jupyter_packaging~=' 'jupyter_packaging>=' \ + --replace 'jupyterlab>=3,<=4' 'jupyterlab>=3' + ''; + + nativeBuildInputs = [ jupyter-packaging jupyterlab + setuptools + wheel ]; propagatedBuildInputs = [