python39Packages.ipywidgets: use pytestCheckHook and general cleanup

main
Samuel Ainsworth 2 years ago
parent 602292f93d
commit fbccf6ead2
  1. 26
      pkgs/development/python-modules/ipywidgets/default.nix

@ -1,43 +1,35 @@
{ lib { buildPythonPackage
, buildPythonPackage
, fetchPypi , fetchPypi
, python
, nose
, pytest
, mock
, ipython
, ipykernel , ipykernel
, ipython
, jupyterlab-widgets , jupyterlab-widgets
, lib
, nbformat
, pytestCheckHook
, traitlets , traitlets
, notebook
, widgetsnbextension , widgetsnbextension
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "ipywidgets"; pname = "ipywidgets";
version = "7.7.0"; version = "7.7.0";
format = "setuptools";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-q0pVloVaiLg3YZIcdocH1l5YRwaBObwXKd3+g0cDVCo="; hash = "sha256-q0pVloVaiLg3YZIcdocH1l5YRwaBObwXKd3+g0cDVCo=";
}; };
# Tests are not distributed
# doCheck = false;
buildInputs = [ nose pytest mock ];
propagatedBuildInputs = [ propagatedBuildInputs = [
ipython ipython
ipykernel ipykernel
jupyterlab-widgets jupyterlab-widgets
traitlets traitlets
notebook nbformat
widgetsnbextension widgetsnbextension
]; ];
checkPhase = '' checkInputs = [ pytestCheckHook ];
${python.interpreter} -m unittest discover
'';
meta = { meta = {
description = "IPython HTML widgets for Jupyter"; description = "IPython HTML widgets for Jupyter";

Loading…
Cancel
Save