nixpkgs/pkgs/development/python-modules/chart-studio/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

45 lines
1,023 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub
, mock
, nose
, plotly
, pytest
, requests
, retrying
, six
}:
buildPythonPackage rec {
pname = "chart-studio";
version = "5.13.1";
# chart-studio was split from plotly
src = fetchFromGitHub {
owner = "plotly";
repo = "plotly.py";
rev = "refs/tags/v${version}";
hash = "sha256-LcCptMtRxXQPbghMIunrPcSLAXQ/r3xVktueMUQ0+gE=";
};
sourceRoot = "source/packages/python/chart-studio";
propagatedBuildInputs = [
plotly
requests
retrying
six
];
nativeCheckInputs = [ mock nose pytest ];
# most tests talk to a service
checkPhase = ''
HOME=$TMPDIR pytest chart_studio/tests/test_core chart_studio/tests/test_plot_ly/test_api
'';
meta = with lib; {
description = "Utilities for interfacing with Plotly's Chart Studio service";
homepage = "https://github.com/plotly/plotly.py/tree/master/packages/python/chart-studio";
license = with licenses; [ mit ];
maintainers = with maintainers; [ jonringer ];
};
}