Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / jupyter-ydoc / default.nix
blob03dae2dfa9ff9fde36d692487ecb3ece2f9e9f18
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , hatch-nodejs-version
5 , hatchling
6 , y-py
7 , pytestCheckHook
8 , websockets
9 , ypy-websocket
12 buildPythonPackage rec {
13   pname = "jupyter-ydoc";
14   version = "1.1.1";
16   format = "pyproject";
18   src = fetchPypi {
19     pname = "jupyter_ydoc";
20     inherit version;
21     hash = "sha256-APizOm59VcvhK5G4emqGtnPikz13w6EmG7qLJHU2Rd0=";
22   };
24   nativeBuildInputs = [
25     hatch-nodejs-version
26     hatchling
27   ];
29   propagatedBuildInputs = [
30     y-py
31   ];
33   pythonImportsCheck = [ "jupyter_ydoc" ];
35   nativeCheckInputs = [
36     pytestCheckHook
37     websockets
38     ypy-websocket
39   ];
41   # requires a Node.js environment
42   doCheck = false;
44   meta = {
45     changelog = "https://github.com/jupyter-server/jupyter_ydoc/blob/v${version}/CHANGELOG.md";
46     description = "Document structures for collaborative editing using Ypy";
47     homepage = "https://github.com/jupyter-server/jupyter_ydoc";
48     license = lib.licenses.bsd3;
49     maintainers = lib.teams.jupyter.members;
50   };