nixpkgs/pkgs/development/python-modules/ipywidgets/default.nix
2018-08-25 07:38:22 +02:00

46 lines
809 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, python
, nose
, pytest
, mock
, ipython
, ipykernel
, traitlets
, notebook
, widgetsnbextension
}:
buildPythonPackage rec {
pname = "ipywidgets";
version = "7.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "fd24a66d82f2ea49e281da7714a7c656340d3ec24dff376b17590fa59469b817";
};
# 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 ];
};
}