nixpkgs/pkgs/development/python-modules/pytrends/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

33 lines
642 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, requests
, lxml
, pandas
}:
buildPythonPackage rec {
pname = "pytrends";
version = "4.9.0";
disabled = isPy27; # python2 pandas is too old
src = fetchPypi {
inherit pname version;
hash = "sha256-pU/B4xcUQrPI9cCApeId+Ae8T6rXeQzGK33bBZ6wqUs=";
};
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 ];
};
}