mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, nose
|
|
, nose_warnings_filters
|
|
, glibcLocales
|
|
, isPy3k
|
|
, mock
|
|
, jinja2
|
|
, tornado
|
|
, ipython_genutils
|
|
, traitlets
|
|
, jupyter_core
|
|
, jupyter_client
|
|
, nbformat
|
|
, nbconvert
|
|
, ipykernel
|
|
, terminado
|
|
, requests
|
|
, send2trash
|
|
, pexpect
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "notebook";
|
|
version = "5.3.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "12vk3shylx61whdchxbg71mdlwiw2l31vl227sqwpb0p67bbw2rq";
|
|
};
|
|
|
|
LC_ALL = "en_US.utf8";
|
|
|
|
buildInputs = [ nose glibcLocales ]
|
|
++ (if isPy3k then [ nose_warnings_filters ] else [ mock ]);
|
|
|
|
propagatedBuildInputs = [
|
|
jinja2 tornado ipython_genutils traitlets jupyter_core send2trash
|
|
jupyter_client nbformat nbconvert ipykernel terminado requests pexpect
|
|
];
|
|
|
|
# disable warning_filters
|
|
preCheck = lib.optionalString (!isPy3k) ''
|
|
echo "" > setup.cfg
|
|
cat setup.cfg
|
|
'';
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
mkdir tmp
|
|
HOME=tmp nosetests -v
|
|
'';
|
|
|
|
meta = {
|
|
description = "The Jupyter HTML notebook is a web-based notebook environment for interactive computing";
|
|
homepage = http://jupyter.org/;
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ fridh globin ];
|
|
};
|
|
}
|