nixpkgs/pkgs/development/python-modules/ipywidgets/default.nix

46 lines
809 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, python
, nose
, pytest
, mock
, ipython
, ipykernel
, traitlets
, notebook
, widgetsnbextension
}:
buildPythonPackage rec {
pname = "ipywidgets";
2019-07-20 09:57:26 +01:00
version = "7.5.0";
src = fetchPypi {
inherit pname version;
2019-07-20 09:57:26 +01:00
sha256 = "cb263c6974aca902d00a435711823bb4aaf6614a5f997f517e15fa84151e8fa2";
};
# 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 ];
};
}