1{
2 buildPythonPackage,
3 fetchPypi,
4 hatch-jupyter-builder,
5 hatch-nodejs-version,
6 hatchling,
7 lib,
8 param,
9 panel,
10}:
11
12buildPythonPackage rec {
13 pname = "pyviz-comms";
14 version = "3.0.6";
15 pyproject = true;
16
17 src = fetchPypi {
18 pname = "pyviz_comms";
19 inherit version;
20 hash = "sha256-c9ZrYgOQ2XlZssTYosB3jUH+IFgb5HF/AeRrj66MVpU=";
21 };
22
23 postPatch = ''
24 substituteInPlace pyproject.toml \
25 --replace-fail '"jupyterlab>=4.0.0,<5",' ""
26 '';
27
28 build-system = [
29 hatch-jupyter-builder
30 hatch-nodejs-version
31 hatchling
32 ];
33
34 dependencies = [ param ];
35
36 # there are not tests with the package
37 doCheck = false;
38
39 pythonImportsCheck = [ "pyviz_comms" ];
40
41 passthru.tests = {
42 inherit panel;
43 };
44
45 meta = {
46 description = "Bidirectional communication for the HoloViz ecosystem";
47 homepage = "https://pyviz.org/";
48 license = lib.licenses.bsd3;
49 maintainers = [ ];
50 };
51}