mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
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:
parent
37587d2860
commit
8af152f197
@ -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" ];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user