mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 09:33:41 +00:00
ef4442e827
See f63eb58573
The `requests2` attribute now throws an error informing that `requests`
should be used instead.
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, nose
|
|
, glibcLocales
|
|
, isPy27
|
|
, mock
|
|
, jinja2
|
|
, tornado
|
|
, ipython_genutils
|
|
, traitlets
|
|
, jupyter_core
|
|
, jupyter_client
|
|
, nbformat
|
|
, nbconvert
|
|
, ipykernel
|
|
, terminado
|
|
, requests
|
|
, pexpect
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "notebook";
|
|
version = "5.0.0";
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1cea3bbbd03c8e5842a1403347a8cc8134486b3ce081a2e5b1952a00ea66ed54";
|
|
};
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
buildInputs = [nose glibcLocales] ++ lib.optionals isPy27 [mock];
|
|
|
|
propagatedBuildInputs = [jinja2 tornado ipython_genutils traitlets jupyter_core
|
|
jupyter_client nbformat nbconvert ipykernel terminado requests pexpect ];
|
|
|
|
checkPhase = ''
|
|
nosetests -v
|
|
'';
|
|
|
|
# Certain tests fail due to being in a chroot.
|
|
# PermissionError
|
|
doCheck = false;
|
|
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 ];
|
|
};
|
|
} |