1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 isPy27,
6 pytestCheckHook,
7 nbval,
8 jupyter-packaging,
9 ipywidgets,
10 numpy,
11 six,
12 traittypes,
13}:
14
15buildPythonPackage rec {
16 pname = "ipydatawidgets";
17 version = "4.3.5";
18 format = "setuptools";
19
20 disabled = isPy27;
21
22 src = fetchPypi {
23 inherit pname version;
24 hash = "sha256-OU8kiVdlh8/XVTd6CaBn9GytIggZZQkgIf0avL54Uqg=";
25 };
26
27 nativeBuildInputs = [ jupyter-packaging ];
28
29 setupPyBuildFlags = [ "--skip-npm" ];
30
31 propagatedBuildInputs = [
32 ipywidgets
33 numpy
34 six
35 traittypes
36 ];
37
38 nativeCheckInputs = [
39 pytestCheckHook
40 nbval
41 ];
42
43 # Tests bind ports
44 __darwinAllowLocalNetworking = true;
45
46 pytestFlagsArray = [
47 # https://github.com/vidartf/ipydatawidgets/issues/62
48 "--deselect=ipydatawidgets/tests/test_ndarray_trait.py::test_dtype_coerce"
49
50 # https://github.com/vidartf/ipydatawidgets/issues/63
51 "--deselect=examples/test.ipynb::Cell\\\ 3"
52 ];
53
54 meta = {
55 description = "Widgets to help facilitate reuse of large datasets across different widgets";
56 homepage = "https://github.com/vidartf/ipydatawidgets";
57 license = lib.licenses.bsd3;
58 maintainers = with lib.maintainers; [ bcdarwin ];
59 };
60}