d5f4a57cbf
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
37 lines
894 B
Nix
37 lines
894 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, jupyter-packaging
|
|
, ipywidgets
|
|
, numpy
|
|
, pillow
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ipycanvas";
|
|
version = "0.13.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-+cOUBoG8ODgzkPjEbqXYRF1uEcbaZITDfYnfWuHawTE=";
|
|
};
|
|
|
|
nativeBuildInputs = [ jupyter-packaging ];
|
|
|
|
propagatedBuildInputs = [ 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 ];
|
|
};
|
|
}
|