mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
python310Packages.jupyter-server-ydoc: init at 0.8.0
This commit is contained in:
parent
ae0d62bd50
commit
7ebbf74d8a
@ -0,0 +1,60 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, hatchling
|
||||
, jupyter-server-fileid
|
||||
, jupyter-ydoc
|
||||
, ypy-websocket
|
||||
, pytest-jupyter
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "jupyter-server-ydoc";
|
||||
version = "0.8.0";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jupyterlab";
|
||||
repo = "jupyter_collaboration";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-KLb7kU5jsj6ihGO6HU3Y7uF+0PcwKoQlqQAhtO0oaJw=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i "/^timeout/d" pyproject.toml
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
hatchling
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
jupyter-server-fileid
|
||||
jupyter-ydoc
|
||||
ypy-websocket
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "jupyter_server_ydoc" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-jupyter
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$TEMP
|
||||
'';
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/jupyterlab/jupyter_collaboration/blob/${src.rev}/CHANGELOG.md";
|
||||
description = "A Jupyter Server Extension Providing Y Documents";
|
||||
homepage = "https://github.com/jupyterlab/jupyter_collaboration";
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
@ -5099,6 +5099,8 @@ self: super: with self; {
|
||||
|
||||
jupyter-server-terminals = callPackage ../development/python-modules/jupyter-server-terminals { };
|
||||
|
||||
jupyter-server-ydoc = callPackage ../development/python-modules/jupyter-server-ydoc { };
|
||||
|
||||
jupyter-ydoc = callPackage ../development/python-modules/jupyter-ydoc { };
|
||||
|
||||
jupyterhub = callPackage ../development/python-modules/jupyterhub { };
|
||||
|
Loading…
Reference in New Issue
Block a user