pythonPackages.jupyter: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-15 23:46:15 -04:00 committed by Frederik Rietdijk
parent af46dbb32e
commit 6102dd1991
2 changed files with 35 additions and 27 deletions

View File

@ -0,0 +1,34 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, notebook
, qtconsole
, jupyter_console
, nbconvert
, ipykernel
, ipywidgets
}:
buildPythonPackage rec {
version = "1.0.0";
pname = "jupyter";
src = fetchPypi {
inherit pname version;
sha256 = "d9dc4b3318f310e34c82951ea5d6683f67bed7def4b259fafbfe4f1beb1d8e5f";
};
propagatedBuildInputs = [ notebook qtconsole jupyter_console nbconvert ipykernel ipywidgets ];
# Meta-package, no tests
doCheck = false;
meta = with stdenv.lib; {
description = "Installs all the Jupyter components in one go";
homepage = "http://jupyter.org/";
license = licenses.bsd3;
platforms = platforms.all;
priority = 100; # This is a metapackage which is unimportant
};
}

View File

@ -1944,37 +1944,11 @@ in {
libthumbor = callPackage ../development/python-modules/libthumbor { }; libthumbor = callPackage ../development/python-modules/libthumbor { };
jupyter = buildPythonPackage rec {
version = "1.0.0";
name = "jupyter-${version}";
src = pkgs.fetchurl {
url = "mirror://pypi/j/jupyter/${name}.tar.gz";
sha256 = "d9dc4b3318f310e34c82951ea5d6683f67bed7def4b259fafbfe4f1beb1d8e5f";
};
lightblue = callPackage ../development/python-modules/lightblue { }; lightblue = callPackage ../development/python-modules/lightblue { };
propagatedBuildInputs = with self; [
notebook
qtconsole
jupyter_console
nbconvert
ipykernel
ipywidgets
];
lightning = callPackage ../development/python-modules/lightning { }; lightning = callPackage ../development/python-modules/lightning { };
# Meta-package, no tests jupyter = callPackage ../development/python-modules/jupyter { };
doCheck = false;
meta = {
description = "Installs all the Jupyter components in one go";
homepage = "http://jupyter.org/";
license = licenses.bsd3;
platforms = platforms.all;
priority = 100; # This is a metapackage which is unimportant
};
};
jupyter_console = callPackage ../development/python-modules/jupyter_console { }; jupyter_console = callPackage ../development/python-modules/jupyter_console { };