diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2019-10-01 20:38:58 -0700 |
---|---|---|
committer | Jonathan Ringer <jonringer117@gmail.com> | 2019-10-07 01:49:14 -0700 |
commit | dbc6baadca4d5835da669585c741aac9d284ece2 (patch) | |
tree | b1b6e509d176bc72bdebf2fddb88635fb3cac322 /pkgs | |
parent | cc25b7a7bd17624daf4f7f60a99f8dc8266215c0 (diff) |
pythonPackages.chart-studio: init at 1.0.0
ZHF #68361 (cherry picked from commit ceefed0723ce291ff810bc8fdfff5fe154cb487b) Signed-off-by: Jonathan Ringer <jonringer117@gmail.com>
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/chart-studio/default.nix | 44 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/chart-studio/default.nix b/pkgs/development/python-modules/chart-studio/default.nix new file mode 100644 index 0000000000000..0eed42dc286e8 --- /dev/null +++ b/pkgs/development/python-modules/chart-studio/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 56a53c0b8e86a..5dc17f20f2888 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1776,6 +1776,8 @@ in { characteristic = callPackage ../development/python-modules/characteristic { }; + chart-studio = callPackage ../development/python-modules/chart-studio { }; + cheetah = callPackage ../development/python-modules/cheetah { }; cherrypy = if isPy3k then |