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