Something went wrong. Try again.
lol
Something went wrong. Try again.
1.7 kB · 78 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, writableTmpDirAsHomeHook, hatch-jupyter-builder, hatchling, ipykernel, ipywidgets, psygnal, pydantic, typing-extensions, watchfiles,}:
buildPythonPackage rec { pname = "anywidget"; version = "0.9.21"; pyproject = true;
src = fetchPypi { inherit pname version; hash = "sha256-uNAXICmsQmVzBTxBbGpYeDhmFhIgi7OQ+gYHhi5ZSyc="; };
# We do not need the jupyterlab build dependency, because we do not need to # build any JS components; these are present already in the PyPI artifact. # postPatch = '' substituteInPlace pyproject.toml \ --replace '"jupyterlab==3.*"' "" '';
build-system = [ hatch-jupyter-builder hatchling ];
dependencies = [ ipywidgets psygnal typing-extensions ];
nativeCheckInputs = [ pytestCheckHook ipykernel pydantic watchfiles writableTmpDirAsHomeHook ];
disabledTests = [ # requires package.json "test_version"
# AssertionError: assert not {140737277121872: <MockComm id='140737277118512'>} "test_descriptor_with_psygnal" "test_descriptor_with_pydantic" "test_descriptor_with_msgspec" "test_descriptor_with_traitlets" "test_infer_file_contents"
# assert not {<function _connect_psygnal.<locals>._disconnect at 0x7ffff3617e... "test_descriptor_with_psygnal" ];
pythonImportsCheck = [ "anywidget" ];
meta = { description = "Custom jupyter widgets made easy"; homepage = "https://github.com/manzt/anywidget"; changelog = "https://github.com/manzt/anywidget/releases/tag/anywidget%40${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ natsukium ]; };}