Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
54 lines
1.2 KiB
Nix
54 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
hatchling,
|
|
ipywidgets,
|
|
numpy,
|
|
pillow,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ipycanvas";
|
|
version = "0.14.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-kh8UgiWLWSm1mTF7XBKZMdgOFr41+jgwCjLnqkz+n4k=";
|
|
};
|
|
|
|
# We relax dependencies here instead of pulling in a patch because upstream
|
|
# has released a new version using hatch-jupyter-builder, but it is not yet
|
|
# trivial to upgrade to that.
|
|
#
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail '"jupyterlab>=3,<5",' "" \
|
|
'';
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
env.HATCH_BUILD_NO_HOOKS = true;
|
|
|
|
dependencies = [
|
|
ipywidgets
|
|
numpy
|
|
pillow
|
|
];
|
|
|
|
doCheck = false; # tests are in Typescript and require `npx` and `chromium`
|
|
pythonImportsCheck = [ "ipycanvas" ];
|
|
|
|
meta = with lib; {
|
|
description = "Expose the browser's Canvas API to IPython";
|
|
homepage = "https://ipycanvas.readthedocs.io";
|
|
changelog = "https://github.com/jupyter-widgets-contrib/ipycanvas/releases/tag/${version}";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
};
|
|
}
|