Skip to content

Commit

Permalink
Merge pull request #225842 from superherointj/duckduckgo-search
Browse files Browse the repository at this point in the history
python311Packages.duckduckgo-search: init 2.8.5
  • Loading branch information
ulrikstrid authored Apr 12, 2023
2 parents 7486a74 + 8a34479 commit 727216f
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
37 changes: 37 additions & 0 deletions pkgs/development/python-modules/duckduckgo-search/default.nix
Original file line number Diff line number Diff line change
@@ -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; [ ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit 727216f

Please sign in to comment.