From 6102dd1991e0cd5d3fa0e04ac6934bb90c0ea438 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 15 Oct 2018 23:46:15 -0400 Subject: [PATCH] pythonPackages.jupyter: refactor move to python-modules --- .../python-modules/jupyter/default.nix | 34 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 28 +-------------- 2 files changed, 35 insertions(+), 27 deletions(-) create mode 100644 pkgs/development/python-modules/jupyter/default.nix diff --git a/pkgs/development/python-modules/jupyter/default.nix b/pkgs/development/python-modules/jupyter/default.nix new file mode 100644 index 000000000000..14f836725536 --- /dev/null +++ b/pkgs/development/python-modules/jupyter/default.nix @@ -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 + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 27a3988497fc..a781a3558fb3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1944,37 +1944,11 @@ in { 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 { }; - propagatedBuildInputs = with self; [ - notebook - qtconsole - jupyter_console - nbconvert - ipykernel - ipywidgets - ]; lightning = callPackage ../development/python-modules/lightning { }; - # Meta-package, no tests - 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 = callPackage ../development/python-modules/jupyter { }; jupyter_console = callPackage ../development/python-modules/jupyter_console { };