depot/third_party/nixpkgs/pkgs/development/python-modules/jupyter-collaboration/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

79 lines
1.5 KiB
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, hatch-jupyter-builder
, hatch-nodejs-version
, hatchling
, pythonRelaxDepsHook
, jupyter-events
, jupyter-server
, jupyter-server-fileid
, jupyter-ydoc
, ypy-websocket
, pytest-asyncio
, pytest-jupyter
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "jupyter-collaboration";
version = "1.0.1";
disabled = pythonOlder "3.8";
format = "pyproject";
src = fetchPypi {
pname = "jupyter_collaboration";
inherit version;
hash = "sha256-cf7BpF6WSoHQJQW0IXdpCAGTdkX9RNWZ4JovTHvcPho=";
};
postPatch = ''
sed -i "/^timeout/d" pyproject.toml
'';
nativeBuildInputs = [
hatch-jupyter-builder
hatch-nodejs-version
hatchling
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"ypy-websocket"
];
propagatedBuildInputs = [
jupyter-events
jupyter-server
jupyter-server-fileid
jupyter-ydoc
ypy-websocket
];
pythonImportsCheck = [ "jupyter_collaboration" ];
nativeCheckInputs = [
pytest-asyncio
pytest-jupyter
pytestCheckHook
];
pytestFlagsArray = [
"-W" "ignore::DeprecationWarning"
];
preCheck = ''
export HOME=$TEMP
'';
meta = {
changelog = "https://github.com/jupyterlab/jupyter_collaboration/blob/v${version}/CHANGELOG.md";
description = "JupyterLab Extension enabling Real-Time Collaboration";
homepage = "https://github.com/jupyterlab/jupyter_collaboration";
license = lib.licenses.bsd3;
maintainers = lib.teams.jupyter.members;
};
}