From ae0d62bd505009372e4b0ff0787a8963774536e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 9 Mar 2023 15:04:02 -0800 Subject: [PATCH] python310Packages.jupyter-server-fileid: init at 0.8.0 --- .../jupyter-server-fileid/default.nix | 54 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 56 insertions(+) create mode 100644 pkgs/development/python-modules/jupyter-server-fileid/default.nix diff --git a/pkgs/development/python-modules/jupyter-server-fileid/default.nix b/pkgs/development/python-modules/jupyter-server-fileid/default.nix new file mode 100644 index 000000000000..2846b00ddb4e --- /dev/null +++ b/pkgs/development/python-modules/jupyter-server-fileid/default.nix @@ -0,0 +1,54 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromGitHub +, hatchling +, jupyter-events +, jupyter-server +, pytest-jupyter +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "jupyter-server-fileid"; + version = "0.8.0"; + + disables = pythonOlder "3.7"; + + format = "pyproject"; + + src = fetchFromGitHub { + owner = "jupyter-server"; + repo = "jupyter_server_fileid"; + rev = "refs/tags/v${version}"; + hash = "sha256-gJ+OM2b4JrdBObPnltqCWGK3e5p3K2XcoUohej3nDIM="; + }; + + nativeBuildInputs = [ + hatchling + ]; + + propagatedBuildInputs = [ + jupyter-events + jupyter-server + ]; + + pythonImportsCheck = [ "jupyter_server_fileid" ]; + + checkInputs = [ + pytest-jupyter + pytestCheckHook + ]; + + preCheck = '' + export HOME=$TEMPDIR + ''; + + meta = { + changelog = "https://github.com/jupyter-server/jupyter_server_fileid/blob/${src.rev}/CHANGELOG.md"; + description = "An extension that maintains file IDs for documents in a running Jupyter Server"; + homepage = "https://github.com/jupyter-server/jupyter_server_fileid"; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f882db9dde74..33ee4b86d16b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5095,6 +5095,8 @@ self: super: with self; { jupyter-server = callPackage ../development/python-modules/jupyter-server { }; + jupyter-server-fileid = callPackage ../development/python-modules/jupyter-server-fileid { }; + jupyter-server-terminals = callPackage ../development/python-modules/jupyter-server-terminals { }; jupyter-ydoc = callPackage ../development/python-modules/jupyter-ydoc { };