Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990{ lib, buildPythonPackage, fetchFromGitHub,
# frontend nodejs, yarn-berry_3,
# build-system hatch-jupyter-builder, hatch-nodejs-version, hatchling, jupyterlab,
# dependencies ipython, ipywidgets, matplotlib, numpy, pillow, traitlets,
# tests importlib-metadata, nbval, pytestCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "ipympl"; version = "0.10.0"; pyproject = true; __structuredAttrs = true;
src = fetchFromGitHub { owner = "matplotlib"; repo = "ipympl"; tag = "v${finalAttrs.version}"; hash = "sha256-IJ7tLUE0Ac4biQc9b87adgDcD8pa9XH1bo8rzDl9DCY="; };
yarnOfflineCache = yarn-berry_3.fetchYarnBerryDeps { inherit (finalAttrs) src; hash = "sha256-tdfrAf2BSz9n83ctWqRxDHZnhnfhKA3BFNhXVr9wvLY="; };
nativeBuildInputs = [ nodejs yarn-berry_3.yarnBerryConfigHook ];
build-system = [ hatch-jupyter-builder hatch-nodejs-version hatchling jupyterlab ];
dependencies = [ ipython ipywidgets matplotlib numpy pillow traitlets ];
nativeCheckInputs = [ importlib-metadata nbval pytestCheckHook ];
pythonImportsCheck = [ "ipympl" "ipympl.backend_nbagg" ];
meta = { changelog = "https://github.com/matplotlib/ipympl/releases/tag/${finalAttrs.src.tag}"; description = "Matplotlib Jupyter Extension"; homepage = "https://github.com/matplotlib/jupyter-matplotlib"; maintainers = with lib.maintainers; [ jluttine ]; license = lib.licenses.bsd3; };})