mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
38 lines
894 B
Nix
38 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 ];
|
||
|
};
|
||
|
}
|