52 lines
928 B
Nix
52 lines
928 B
Nix
{
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
hatch-jupyter-builder,
|
|
hatch-nodejs-version,
|
|
hatchling,
|
|
lib,
|
|
param,
|
|
panel,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyviz-comms";
|
|
version = "3.0.6";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "pyviz_comms";
|
|
inherit version;
|
|
hash = "sha256-c9ZrYgOQ2XlZssTYosB3jUH+IFgb5HF/AeRrj66MVpU=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail '"jupyterlab>=4.0.0,<5",' ""
|
|
'';
|
|
|
|
build-system = [
|
|
hatch-jupyter-builder
|
|
hatch-nodejs-version
|
|
hatchling
|
|
];
|
|
|
|
dependencies = [ param ];
|
|
|
|
# there are not tests with the package
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pyviz_comms" ];
|
|
|
|
passthru.tests = {
|
|
inherit panel;
|
|
};
|
|
|
|
meta = {
|
|
description = "Bidirectional communication for the HoloViz ecosystem";
|
|
homepage = "https://pyviz.org/";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|