Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythonPackages.chart-studio: init at 1.0.0
ZHF #68361 (cherry picked from commit ceefed0) Signed-off-by: Jonathan Ringer <jonringer117@gmail.com>
- Loading branch information
Jonathan Ringer
committed
Oct 7, 2019
1 parent
cc25b7a
commit dbc6baa
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ lib, buildPythonPackage, fetchFromGitHub | ||
, mock | ||
, nose | ||
, plotly | ||
, pytest | ||
, requests | ||
, retrying | ||
, six | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "chart-studio"; | ||
version = "1.0.0"; | ||
|
||
# chart-studio was split from plotly | ||
src = fetchFromGitHub { | ||
owner = "plotly"; | ||
repo = "plotly.py"; | ||
rev = "${pname}-v${version}"; | ||
sha256 = "14lyqbjdffnlnkzlfnn60k7yxjd99vx3hfcs23apsiyinzipjlbf"; | ||
}; | ||
|
||
sourceRoot = "source/packages/python/chart-studio"; | ||
|
||
propagatedBuildInputs = [ | ||
plotly | ||
requests | ||
retrying | ||
six | ||
]; | ||
|
||
checkInputs = [ 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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters