2020-05-15 21:57:56 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
, pytest
|
2021-07-24 12:14:16 +00:00
|
|
|
, pytest-cov
|
2020-05-15 21:57:56 +00:00
|
|
|
, nbval
|
2021-12-30 13:39:12 +00:00
|
|
|
, jupyter-packaging
|
2020-05-15 21:57:56 +00:00
|
|
|
, ipywidgets
|
|
|
|
, numpy
|
|
|
|
, six
|
|
|
|
, traittypes
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ipydatawidgets";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "4.2.0";
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "d0e4b58b59b508165e8562b8f5d1dbfcd739855847ec0477bd9185a5e9b7c5bc";
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
|
2021-12-30 13:39:12 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
jupyter-packaging
|
|
|
|
];
|
|
|
|
|
|
|
|
setupPyBuildFlags = [ "--skip-npm" ];
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
ipywidgets
|
|
|
|
numpy
|
|
|
|
six
|
|
|
|
traittypes
|
|
|
|
];
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
checkInputs = [ pytest pytest-cov nbval ];
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
checkPhase = "pytest ipydatawidgets/tests";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Widgets to help facilitate reuse of large datasets across different widgets";
|
|
|
|
homepage = "https://github.com/vidartf/ipydatawidgets";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|