From fd4545f35bcbbeb9a95c5c289aa22f68a9d3ff1f Mon Sep 17 00:00:00 2001 From: Marek Mahut Date: Mon, 5 Aug 2019 14:55:39 +0200 Subject: [PATCH] pythonPackages.pytrends: init at 4.6.0 --- .../python-modules/pytrends/default.nix | 29 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/python-modules/pytrends/default.nix diff --git a/pkgs/development/python-modules/pytrends/default.nix b/pkgs/development/python-modules/pytrends/default.nix new file mode 100644 index 000000000000..b3ada6247e3c --- /dev/null +++ b/pkgs/development/python-modules/pytrends/default.nix @@ -0,0 +1,29 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, requests +, lxml +, pandas +}: + +buildPythonPackage rec { + pname = "pytrends"; + version = "4.6.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "03gnn2mgjvpc7pbcijy7xilrhgjg7x2pp6ci96pdyqnhkqv02d3n"; + }; + + doCheck = false; + + propagatedBuildInputs = [ requests lxml pandas ]; + + meta = with stdenv.lib; { + description = "Pseudo API for Google Trends"; + homepage = "https://github.com/GeneralMills/pytrends"; + license = [ licenses.asl20 ]; + maintainers = [ maintainers.mmahut ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0896322e5105..cdfb9db05b99 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1063,6 +1063,8 @@ in { pytricia = callPackage ../development/python-modules/pytricia { }; + pytrends = callPackage ../development/python-modules/pytrends { }; + py-vapid = callPackage ../development/python-modules/py-vapid { }; PyWebDAV = callPackage ../development/python-modules/pywebdav { };