Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
962 B · 43 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344{ 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 ]; };}