Clément ba798fa013
duckduckgo-search: 8.0.4 -> 8.1.1
This is voluntarely not the last version, to avoid a breaking change.
See `ddgs` for the up-to-date version.
2025-07-09 10:37:14 +02:00

44 lines
962 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
click,
primp,
lxml,
}:
buildPythonPackage rec {
pname = "duckduckgo-search";
version = "8.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "deedy5";
repo = "ddgs";
tag = "v${version}";
hash = "sha256-ikNGBkDRyhX8yO/7DYMh1w4q3LCN7A7jsuqFsNQGsy4=";
};
build-system = [ setuptools ];
dependencies = [
click
primp
lxml
];
doCheck = false; # tests require network access
pythonImportsCheck = [ "duckduckgo_search" ];
meta = {
description = "Python CLI and library for searching for words, documents, images, videos, news, maps and text translation using the DuckDuckGo.com search engine";
mainProgram = "ddgs";
homepage = "https://github.com/deedy5/ddgs";
changelog = "https://github.com/deedy5/ddgs/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ drawbu ];
};
}