python310Packages.duckduckgo-search: 2.8.5 -> 3.8.5

Version 2.8.5 is very old and doesn't work anymore.
This commit is contained in:
Benjamin Hipple 2023-08-13 14:25:32 -04:00
parent 37587d2860
commit 8af152f197

View File

@ -2,19 +2,24 @@
, fetchFromGitHub , fetchFromGitHub
, lib , lib
, setuptools , setuptools
, requests , aiofiles
, click , click
, h2
, httpx
, lxml
, requests
, socksio
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "duckduckgo-search"; pname = "duckduckgo-search";
version = "2.8.5"; version = "3.8.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "deedy5"; owner = "deedy5";
repo = "duckduckgo_search"; repo = "duckduckgo_search";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-UXh3+kBfkylt5CIXbYTa/vniEETUvh4steUrUg5MqYU="; hash = "sha256-FOGMqvr5+O3+UTdM0m1nJBAcemP6hpAOXv0elvnCUHU=";
}; };
format = "pyproject"; format = "pyproject";
@ -22,9 +27,16 @@ buildPythonPackage rec {
nativeBuildInputs = [ setuptools ]; nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ propagatedBuildInputs = [
requests aiofiles
click click
]; h2
httpx
lxml
requests
socksio
] ++ httpx.optional-dependencies.brotli
++ httpx.optional-dependencies.http2
++ httpx.optional-dependencies.socks;
pythonImportsCheck = [ "duckduckgo_search" ]; pythonImportsCheck = [ "duckduckgo_search" ];