Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 53 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ lib, buildPythonPackage, fetchPypi, pythonOlder, hatchling, ipywidgets, numpy, pillow,}:
buildPythonPackage rec { pname = "ipycanvas"; version = "0.13.3"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi { inherit pname version; hash = "sha256-ToZ8UJsB9cTPwAn32SHjLloSoCmshW54wE/xW2VpLEo="; };
# 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 ]; };}