1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy27
5, requests
6, lxml
7, pandas
8}:
9
10buildPythonPackage rec {
11 pname = "pytrends";
12 version = "4.7.3";
13 disabled = isPy27; # python2 pandas is too old
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "8ccb06c57c31fa157b978a0d810de7718ee46583d28cf818250d45f36abd2faa";
18 };
19
20 propagatedBuildInputs = [ requests lxml pandas ];
21
22 doCheck = false;
23 pythonImportsCheck = [ "pytrends" ];
24
25 meta = with lib; {
26 description = "Pseudo API for Google Trends";
27 homepage = "https://github.com/GeneralMills/pytrends";
28 license = [ licenses.asl20 ];
29 maintainers = [ maintainers.mmahut ];
30 };
31
32}