2017-04-18 08:43:30 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python
|
|
|
|
, nose
|
|
|
|
, pytest
|
|
|
|
, mock
|
|
|
|
, ipython
|
|
|
|
, ipykernel
|
2021-04-04 21:49:33 +00:00
|
|
|
, jupyterlab-widgets
|
2017-04-18 08:43:30 +00:00
|
|
|
, traitlets
|
|
|
|
, notebook
|
|
|
|
, widgetsnbextension
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ipywidgets";
|
2021-10-08 22:23:07 +00:00
|
|
|
version = "7.6.5";
|
2017-04-18 08:43:30 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-08 22:23:07 +00:00
|
|
|
sha256 = "00974f7cb4d5f8d494c19810fedb9fa9b64bffd3cda7c2be23c133a1ad3c99c5";
|
2017-04-18 08:43:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Tests are not distributed
|
|
|
|
# doCheck = false;
|
|
|
|
|
|
|
|
buildInputs = [ nose pytest mock ];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ipython
|
|
|
|
ipykernel
|
2021-04-04 21:49:33 +00:00
|
|
|
jupyterlab-widgets
|
2017-04-18 08:43:30 +00:00
|
|
|
traitlets
|
|
|
|
notebook
|
|
|
|
widgetsnbextension
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest discover
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "IPython HTML widgets for Jupyter";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://ipython.org/";
|
2017-04-18 08:43:30 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
|
|
};
|
2020-04-01 01:11:51 +00:00
|
|
|
}
|