nixpkgs/pkgs/development/python-modules/ipydatawidgets/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

50 lines
894 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;
hash = "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 ];
};
}