depot/third_party/nixpkgs/pkgs/development/python-modules/ipydatawidgets/default.nix
Default email 5557ff764c Project import generated by Copybara.
GitOrigin-RevId: 988cc958c57ce4350ec248d2d53087777f9e1949
2023-02-22 11:55:15 +01:00

49 lines
896 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, pytest
, pytest-cov
, nbval
, jupyter-packaging
, ipywidgets
, numpy
, six
, traittypes
}:
buildPythonPackage rec {
pname = "ipydatawidgets";
version = "4.3.3";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-T7LOaT+yaM2ukAN0z6GpFkHiLZUU0eweYtp0cFCST3Y=";
};
nativeBuildInputs = [
jupyter-packaging
];
setupPyBuildFlags = [ "--skip-npm" ];
propagatedBuildInputs = [
ipywidgets
numpy
six
traittypes
];
nativeCheckInputs = [ pytest pytest-cov nbval ];
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 ];
};
}