depot/third_party/nixpkgs/pkgs/development/python-modules/ipycanvas/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

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 ];
};
}