diff options
-rw-r--r-- | pkgs/development/python-modules/nbclient/default.nix | 35 |
1 files changed, 23 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/nbclient/default.nix b/pkgs/development/python-modules/nbclient/default.nix index 7311384229a..84fe03be605 100644 --- a/pkgs/development/python-modules/nbclient/default.nix +++ b/pkgs/development/python-modules/nbclient/default.nix @@ -1,16 +1,18 @@ -{ lib +{ async_generator , buildPythonPackage -, fetchPypi -, pythonOlder -, async_generator -, traitlets +, fetchFromGitHub +, ipykernel +, ipywidgets +, jupyter-client +, lib +, nbconvert , nbformat , nest-asyncio -, jupyter-client +, pytest-asyncio , pytestCheckHook +, pythonOlder +, traitlets , xmltodict -, nbconvert -, ipywidgets }: let nbclient = buildPythonPackage rec { @@ -20,9 +22,11 @@ let nbclient = buildPythonPackage rec { disabled = pythonOlder "3.7"; - src = fetchPypi { - inherit pname version; - hash = "sha256-uAcm/B+4mg6Pi+HnfijQAmsejtkLwUPIoMdiLk+M3Z4="; + src = fetchFromGitHub { + owner = "jupyter"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-ofyJNJeNkXbZ9qHLTuzJ13PgEXU9lDQ9NkT4nG/R8Ic="; }; propagatedBuildInputs = [ async_generator traitlets nbformat nest-asyncio jupyter-client ]; @@ -30,7 +34,14 @@ let nbclient = buildPythonPackage rec { # circular dependencies if enabled by default doCheck = false; - checkInputs = [ pytestCheckHook xmltodict nbconvert ipywidgets ]; + checkInputs = [ + ipykernel + ipywidgets + nbconvert + pytest-asyncio + pytestCheckHook + xmltodict + ]; preCheck = '' export HOME=$(mktemp -d) |