Merge pull request from superherointj/duckduckgo-search

python311Packages.duckduckgo-search: init 2.8.5
This commit is contained in:
Ulrik Strid 2023-04-12 14:34:41 +02:00 committed by GitHub
commit 727216f743
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 0 deletions
pkgs
development/python-modules/duckduckgo-search
top-level

View file

@ -0,0 +1,37 @@
{ buildPythonPackage
, fetchFromGitHub
, lib
, setuptools
, requests
, click
}:
buildPythonPackage rec {
pname = "duckduckgo-search";
version = "2.8.5";
src = fetchFromGitHub {
owner = "deedy5";
repo = "duckduckgo_search";
rev = "v${version}";
hash = "sha256-UXh3+kBfkylt5CIXbYTa/vniEETUvh4steUrUg5MqYU=";
};
format = "pyproject";
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
requests
click
];
pythonImportsCheck = [ "duckduckgo_search" ];
meta = {
description = "A python CLI and library for searching for words, documents, images, videos, news, maps and text translation using the DuckDuckGo.com search engine";
homepage = "https://github.com/deedy5/duckduckgo_search";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
};
}

View file

@ -2933,6 +2933,8 @@ self: super: with self; {
duckdb-engine = callPackage ../development/python-modules/duckdb-engine { };
duckduckgo-search = callPackage ../development/python-modules/duckduckgo-search { };
duecredit = callPackage ../development/python-modules/duecredit { };
duet = callPackage ../development/python-modules/duet { };