summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorSamuel Ainsworth <skainsworth@gmail.com>2022-05-05 19:05:52 +0000
committerSamuel Ainsworth <skainsworth@gmail.com>2022-05-05 19:05:52 +0000
commitfbccf6ead2e02e188daaa5a52bc98da4dc7679ea (patch)
treefcfa7996be60d5f39f41714f336304f2275d90ec /pkgs/development/python-modules
parent602292f93d610fd52e7fa61e30e283123cf38a72 (diff)
python39Packages.ipywidgets: use pytestCheckHook and general cleanup
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/ipywidgets/default.nix26
1 files changed, 9 insertions, 17 deletions
diff --git a/pkgs/development/python-modules/ipywidgets/default.nix b/pkgs/development/python-modules/ipywidgets/default.nix
index b33ec2759b56..8894fbaf21ff 100644
--- a/pkgs/development/python-modules/ipywidgets/default.nix
+++ b/pkgs/development/python-modules/ipywidgets/default.nix
@@ -1,43 +1,35 @@
-{ lib
-, buildPythonPackage
+{ buildPythonPackage
, fetchPypi
-, python
-, nose
-, pytest
-, mock
-, ipython
, ipykernel
+, ipython
, jupyterlab-widgets
+, lib
+, nbformat
+, pytestCheckHook
, traitlets
-, notebook
, widgetsnbextension
}:
buildPythonPackage rec {
pname = "ipywidgets";
version = "7.7.0";
+ format = "setuptools";
src = fetchPypi {
inherit pname version;
- sha256 = "sha256-q0pVloVaiLg3YZIcdocH1l5YRwaBObwXKd3+g0cDVCo=";
+ hash = "sha256-q0pVloVaiLg3YZIcdocH1l5YRwaBObwXKd3+g0cDVCo=";
};
- # Tests are not distributed
- # doCheck = false;
-
- buildInputs = [ nose pytest mock ];
propagatedBuildInputs = [
ipython
ipykernel
jupyterlab-widgets
traitlets
- notebook
+ nbformat
widgetsnbextension
];
- checkPhase = ''
- ${python.interpreter} -m unittest discover
- '';
+ checkInputs = [ pytestCheckHook ];
meta = {
description = "IPython HTML widgets for Jupyter";