Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 66 lines
Nix
at gcc-offload
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder, hatch-jupyter-builder, hatchling, importlib-metadata, ipywidgets, psygnal, typing-extensions, watchfiles,}:
buildPythonPackage rec { pname = "anywidget"; version = "0.9.13"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi { inherit pname version; hash = "sha256-xlVFW/UfghgusjxZR9N8xB8LH/rK9+K3YxR6IzLLPwc="; };
# 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 ] ++ lib.optional (pythonOlder "3.8") importlib-metadata;
nativeCheckInputs = [ pytestCheckHook watchfiles ];
disabledTests = [ # requires package.json "test_version" ];
pythonImportsCheck = [ "anywidget" ];
meta = with lib; { description = "Custom jupyter widgets made easy"; homepage = "https://github.com/manzt/anywidget"; changelog = "https://github.com/manzt/anywidget/releases/tag/anywidget%40${version}"; license = licenses.mit; maintainers = with maintainers; [ natsukium ]; };}