Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / google-search-results / default.nix
blob9130ad9ddb05c4ee17e4e26167c252dc84049fcf
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pythonOlder
5 , requests
6 }:
8 buildPythonPackage rec {
9   pname = "google-search-results";
10   version = "2.4.2";
11   format = "setuptools";
13   disabled = pythonOlder "3.7";
15   src = fetchPypi {
16     inherit version;
17     pname = builtins.replaceStrings [ "-" ] [ "_" ] pname;
18     hash = "sha256-YDow7K4q+OYAsiY1dXpt8nXa1Lk0+XXmeHjM1kC3gkU=";
19   };
21   propagatedBuildInputs = [
22     requests
23   ];
25   # almost all tests require an API key or network access
26   doCheck = false;
28   pythonImportsCheck = [
29     "serpapi"
30   ];
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   };