1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, requests
6}:
7
8buildPythonPackage rec {
9 pname = "google-search-results";
10 version = "2.4.2";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchPypi {
16 inherit version;
17 pname = builtins.replaceStrings [ "-" ] [ "_" ] pname;
18 hash = "sha256-YDow7K4q+OYAsiY1dXpt8nXa1Lk0+XXmeHjM1kC3gkU=";
19 };
20
21 propagatedBuildInputs = [
22 requests
23 ];
24
25 # almost all tests require an API key or network access
26 doCheck = false;
27
28 pythonImportsCheck = [
29 "serpapi"
30 ];
31
32 meta = with lib; {
33 description = "Scrape and search localized results from Google, Bing, Baidu, Yahoo, Yandex, Ebay, Homedepot, youtube at scale using SerpApi.com";
34 homepage = "https://github.com/serpapi/google-search-results-python";
35 changelog = "https://github.com/serpapi/google-search-results-python/releases/tag/${version}";
36 license = licenses.mit;
37 maintainers = with maintainers; [ natsukium ];
38 };
39}