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