81047829ea
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
32 lines
644 B
Nix
32 lines
644 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy27
|
|
, requests
|
|
, lxml
|
|
, pandas
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytrends";
|
|
version = "4.8.0";
|
|
disabled = isPy27; # python2 pandas is too old
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-BLezPrbfwSCqictGQGiKi2MzNydrbdzqRP8Mf2tiQ9I=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ requests lxml pandas ];
|
|
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "pytrends" ];
|
|
|
|
meta = with lib; {
|
|
description = "Pseudo API for Google Trends";
|
|
homepage = "https://github.com/GeneralMills/pytrends";
|
|
license = [ licenses.asl20 ];
|
|
maintainers = [ maintainers.mmahut ];
|
|
};
|
|
|
|
}
|