diff --git a/pkgs/development/python-modules/plotly/default.nix b/pkgs/development/python-modules/plotly/default.nix new file mode 100644 index 000000000000..3c2e78ac1f1f --- /dev/null +++ b/pkgs/development/python-modules/plotly/default.nix @@ -0,0 +1,37 @@ +{ lib +, buildPythonPackage +, fetchPypi +, decorator +, nbformat +, pytz +, requests2 +, six +}: + +buildPythonPackage rec { + pname = "plotly"; + version = "2.0.8"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "1zbwx771w6425w4g6l9fhq4x1854fdnni6xq9xhvs8xqgxkrljm5"; + }; + + propagatedBuildInputs = [ + decorator + nbformat + pytz + requests2 + six + ]; + + # No tests in archive + doCheck = false; + + meta = { + description = "Python plotting library for collaborative, interactive, publication-quality graphs"; + homepage = https://plot.ly/python/; + license = with lib.licenses; [ mit ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c41ed0522c46..97461c8e5f20 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8899,23 +8899,7 @@ in { }; }; - plotly = self.buildPythonPackage rec { - name = "plotly-1.9.5"; - disabled = isPy3k; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/plotly/${name}.tar.gz"; - sha256 = "628679e880caab22e2a46273e85e1d1ce1382b631e1c7bbfe539f804c5269b21"; - }; - - propagatedBuildInputs = with self; [ self.pytz self.six self.requests ]; - - meta = { - description = "Python plotting library for collaborative, interactive, publication-quality graphs"; - homepage = https://plot.ly/python/; - license = licenses.mit; - }; - }; + plotly = callPackage ../development/python-modules/plotly { }; podcastparser = callPackage ../development/python-modules/podcastparser { };