1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-16 01:46:30 +00:00
nixpkgs/pkgs/development/python-modules/notebook/default.nix

66 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, nose
2017-10-23 12:40:02 +01:00
, nose_warnings_filters
, glibcLocales
2017-10-23 12:40:02 +01:00
, isPy3k
, mock
, jinja2
, tornado
, ipython_genutils
, traitlets
, jupyter_core
, jupyter_client
, nbformat
, nbconvert
, ipykernel
, terminado
, requests
2018-01-16 21:08:03 +00:00
, send2trash
, pexpect
}:
buildPythonPackage rec {
pname = "notebook";
version = "5.4.1";
src = fetchPypi {
inherit pname version;
sha256 = "01l6yp78sp27vns4cxh8ybr7x0pixxn97cp0i3w6s0lv1v8l6qbx";
};
2017-10-23 12:40:02 +01:00
LC_ALL = "en_US.utf8";
2017-10-23 12:40:02 +01:00
buildInputs = [ nose glibcLocales ]
++ (if isPy3k then [ nose_warnings_filters ] else [ mock ]);
2017-10-23 12:40:02 +01:00
propagatedBuildInputs = [
2018-01-16 21:08:03 +00:00
jinja2 tornado ipython_genutils traitlets jupyter_core send2trash
2017-10-23 12:40:02 +01:00
jupyter_client nbformat nbconvert ipykernel terminado requests pexpect
];
2017-10-23 12:40:02 +01:00
# disable warning_filters
preCheck = lib.optionalString (!isPy3k) ''
echo "" > setup.cfg
cat setup.cfg
'';
checkPhase = ''
2017-10-23 12:40:02 +01:00
runHook preCheck
mkdir tmp
HOME=tmp nosetests -v ${if (stdenv.isDarwin) then ''
--exclude test_delete \
--exclude test_checkpoints_follow_file
''
else ""}
'';
meta = {
description = "The Jupyter HTML notebook is a web-based notebook environment for interactive computing";
homepage = http://jupyter.org/;
license = lib.licenses.bsd3;
2017-10-23 12:40:02 +01:00
maintainers = with lib.maintainers; [ fridh globin ];
};
2017-10-23 12:40:02 +01:00
}