2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# build
|
|
|
|
hatchling,
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# runtime
|
|
|
|
terminado,
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# tests
|
|
|
|
pytest-jupyter,
|
|
|
|
pytest-timeout,
|
|
|
|
pytestCheckHook,
|
2023-01-20 10:41:00 +00:00
|
|
|
}:
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
let
|
|
|
|
self = buildPythonPackage rec {
|
|
|
|
pname = "jupyter-server-terminals";
|
|
|
|
version = "0.5.3";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jupyter-server";
|
|
|
|
repo = "jupyter_server_terminals";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-af7jBscGkbekXgfDxwAfrJSY1uEuIGfzzSsjaPdlYcY=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ hatchling ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ terminado ];
|
|
|
|
|
|
|
|
doCheck = false; # infinite recursion
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytest-jupyter
|
|
|
|
pytest-timeout
|
|
|
|
pytestCheckHook
|
|
|
|
] ++ pytest-jupyter.optional-dependencies.server;
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
check = self.overridePythonAttrs (_: {
|
|
|
|
doCheck = true;
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
changelog = "https://github.com/jupyter-server/jupyter_server_terminals/releases/tag/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Jupyter Server Extension Providing Support for Terminals";
|
2024-06-05 15:53:02 +00:00
|
|
|
homepage = "https://github.com/jupyter-server/jupyter_server_terminals";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
2024-06-05 15:53:02 +00:00
|
|
|
in
|
|
|
|
self
|