mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-25 21:44:49 +00:00
Merge pull request #171624 from samuela/samuela/ipywidgets
python39Packages.ipywidgets: use pytestCheckHook and general cleanup
This commit is contained in:
commit
3d52e344bd
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user