mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
46 lines
809 B
Nix
46 lines
809 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, python
|
|
, nose
|
|
, pytest
|
|
, mock
|
|
, ipython
|
|
, ipykernel
|
|
, traitlets
|
|
, notebook
|
|
, widgetsnbextension
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ipywidgets";
|
|
version = "7.5.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "e945f6e02854a74994c596d9db83444a1850c01648f1574adf144fbbabe05c97";
|
|
};
|
|
|
|
# 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 ];
|
|
};
|
|
} |