Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ buildPythonPackage 2, fetchFromGitHub 3, lib 4, setuptools 5, requests 6, click 7}: 8 9buildPythonPackage rec { 10 pname = "duckduckgo-search"; 11 version = "2.8.5"; 12 13 src = fetchFromGitHub { 14 owner = "deedy5"; 15 repo = "duckduckgo_search"; 16 rev = "v${version}"; 17 hash = "sha256-UXh3+kBfkylt5CIXbYTa/vniEETUvh4steUrUg5MqYU="; 18 }; 19 20 format = "pyproject"; 21 22 nativeBuildInputs = [ setuptools ]; 23 24 propagatedBuildInputs = [ 25 requests 26 click 27 ]; 28 29 pythonImportsCheck = [ "duckduckgo_search" ]; 30 31 meta = { 32 description = "A python CLI and library for searching for words, documents, images, videos, news, maps and text translation using the DuckDuckGo.com search engine"; 33 homepage = "https://github.com/deedy5/duckduckgo_search"; 34 license = lib.licenses.mit; 35 maintainers = with lib.maintainers; [ ]; 36 }; 37}