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

51 lines
999 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, hatch-nodejs-version
, hatchling
, y-py
, pytestCheckHook
, websockets
, ypy-websocket
}:
buildPythonPackage rec {
pname = "jupyter-ydoc";
version = "1.0.2";
format = "pyproject";
src = fetchPypi {
pname = "jupyter_ydoc";
inherit version;
hash = "sha256-D5W+3j8eCB4H1cV8A8ZY46Ukfg7xiIkHT776IN0+ylM=";
};
nativeBuildInputs = [
hatch-nodejs-version
hatchling
];
propagatedBuildInputs = [
y-py
];
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;
};
}