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