2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2019-08-05 12:55:39 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-08-15 19:06:52 +00:00
|
|
|
, isPy27
|
2019-08-05 12:55:39 +00:00
|
|
|
, requests
|
|
|
|
, lxml
|
|
|
|
, pandas
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytrends";
|
2020-06-05 17:44:37 +00:00
|
|
|
version = "4.7.3";
|
2020-08-15 19:06:52 +00:00
|
|
|
disabled = isPy27; # python2 pandas is too old
|
2019-08-05 12:55:39 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-05 17:44:37 +00:00
|
|
|
sha256 = "8ccb06c57c31fa157b978a0d810de7718ee46583d28cf818250d45f36abd2faa";
|
2019-08-05 12:55:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests lxml pandas ];
|
|
|
|
|
2021-02-15 22:35:40 +00:00
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pytrends" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-08-05 12:55:39 +00:00
|
|
|
description = "Pseudo API for Google Trends";
|
|
|
|
homepage = "https://github.com/GeneralMills/pytrends";
|
|
|
|
license = [ licenses.asl20 ];
|
|
|
|
maintainers = [ maintainers.mmahut ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|