depot/third_party/nixpkgs/pkgs/development/python-modules/jupyter-ydoc/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

53 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
hatch-nodejs-version,
hatchling,
importlib-metadata,
pycrdt,
pytestCheckHook,
websockets,
ypy-websocket,
}:
buildPythonPackage rec {
pname = "jupyter-ydoc";
version = "2.1.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "jupyter_ydoc";
inherit version;
hash = "sha256-HcvxOGGzZ4AA1pr07zi0njoS+AgbqFHGgDk8Lhi8S4Q=";
};
nativeBuildInputs = [
hatch-nodejs-version
hatchling
];
propagatedBuildInputs = [ pycrdt ] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ];
pythonImportsCheck = [ "jupyter_ydoc" ];
nativeCheckInputs = [
pytestCheckHook
websockets
ypy-websocket
];
# requires a Node.js environment
doCheck = false;
meta = {
changelog = "https://github.com/jupyter-server/jupyter_ydoc/blob/v${version}/CHANGELOG.md";
description = "Document structures for collaborative editing using Ypy";
homepage = "https://github.com/jupyter-server/jupyter_ydoc";
license = lib.licenses.bsd3;
maintainers = lib.teams.jupyter.members;
};
}