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