From 2c00cd3bae13487a88cff3f68ac12835d8552193 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Tue, 18 Apr 2017 10:43:30 +0200 Subject: [PATCH] pythonPackages.ipywidgets: 5.2.2 -> 6.0.0 --- .../python-modules/ipywidgets/default.nix | 47 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 23 +-------- 2 files changed, 48 insertions(+), 22 deletions(-) create mode 100644 pkgs/development/python-modules/ipywidgets/default.nix diff --git a/pkgs/development/python-modules/ipywidgets/default.nix b/pkgs/development/python-modules/ipywidgets/default.nix new file mode 100644 index 000000000000..dcd5b89b6b8e --- /dev/null +++ b/pkgs/development/python-modules/ipywidgets/default.nix @@ -0,0 +1,47 @@ +{ lib +, buildPythonPackage +, fetchPypi +, python +, nose +, pytest +, mock +, ipython +, ipykernel +, traitlets +, notebook +, widgetsnbextension +}: + +buildPythonPackage rec { + pname = "ipywidgets"; + version = "6.0.0"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "afa6248850cff14ef86117db87aeab0b12237e4eaf740e73716460ed593a43a7"; + }; + + # Tests are not distributed + # doCheck = false; + + buildInputs = [ nose pytest mock ]; + propagatedBuildInputs = [ + ipython + ipykernel + traitlets + notebook + widgetsnbextension + ]; + + checkPhase = '' + ${python.interpreter} -m unittest discover + ''; + + meta = { + description = "IPython HTML widgets for Jupyter"; + homepage = http://ipython.org/; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ fridh ]; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d208c1e2a2bd..bfbb64a2bf70 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13144,28 +13144,7 @@ in { }; - ipywidgets = buildPythonPackage rec { - version = "5.2.2"; - name = "ipywidgets-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/i/ipywidgets/${name}.tar.gz"; - sha256 = "baf6098f054dd5eacc2934b8ea3bef908b81ca8660d839f1f940255a72c660d2"; - }; - - # Tests are not distributed - doCheck = false; - - buildInputs = with self; [ nose pytest ]; - propagatedBuildInputs = with self; [ipython ipykernel traitlets notebook widgetsnbextension ]; - - meta = { - description = "IPython HTML widgets for Jupyter"; - homepage = http://ipython.org/; - license = licenses.bsd3; - maintainers = with maintainers; [ fridh ]; - }; - }; + ipywidgets = callPackage ../development/python-modules/ipywidgets { }; ipaddr = buildPythonPackage rec { name = "ipaddr-2.1.10";