Merge pull request #232424 from natsukium/python3Packages.google-search-results/init
This commit is contained in:
commit
b6bd2a917b
|
@ -0,0 +1,39 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, pythonOlder
|
||||||
|
, requests
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "google-search-results";
|
||||||
|
version = "2.4.2";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit version;
|
||||||
|
pname = builtins.replaceStrings [ "-" ] [ "_" ] pname;
|
||||||
|
hash = "sha256-YDow7K4q+OYAsiY1dXpt8nXa1Lk0+XXmeHjM1kC3gkU=";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
requests
|
||||||
|
];
|
||||||
|
|
||||||
|
# almost all tests require an API key or network access
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"serpapi"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Scrape and search localized results from Google, Bing, Baidu, Yahoo, Yandex, Ebay, Homedepot, youtube at scale using SerpApi.com";
|
||||||
|
homepage = "https://github.com/serpapi/google-search-results-python";
|
||||||
|
changelog = "https://github.com/serpapi/google-search-results-python/releases/tag/${version}";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ natsukium ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -31,6 +31,7 @@
|
||||||
, azure-core
|
, azure-core
|
||||||
, elasticsearch
|
, elasticsearch
|
||||||
, opensearch-py
|
, opensearch-py
|
||||||
|
, google-search-results
|
||||||
, faiss
|
, faiss
|
||||||
, spacy
|
, spacy
|
||||||
, nltk
|
, nltk
|
||||||
|
@ -160,7 +161,7 @@ buildPythonPackage rec {
|
||||||
manifest-ml
|
manifest-ml
|
||||||
elasticsearch
|
elasticsearch
|
||||||
opensearch-py
|
opensearch-py
|
||||||
# google-search-results
|
google-search-results
|
||||||
faiss
|
faiss
|
||||||
sentence-transformers
|
sentence-transformers
|
||||||
transformers
|
transformers
|
||||||
|
|
|
@ -4246,6 +4246,8 @@ self: super: with self; {
|
||||||
|
|
||||||
google-resumable-media = callPackage ../development/python-modules/google-resumable-media { };
|
google-resumable-media = callPackage ../development/python-modules/google-resumable-media { };
|
||||||
|
|
||||||
|
google-search-results = callPackage ../development/python-modules/google-search-results { };
|
||||||
|
|
||||||
googletrans = callPackage ../development/python-modules/googletrans { };
|
googletrans = callPackage ../development/python-modules/googletrans { };
|
||||||
|
|
||||||
gorilla = callPackage ../development/python-modules/gorilla { };
|
gorilla = callPackage ../development/python-modules/gorilla { };
|
||||||
|
|
Loading…
Reference in a new issue