python31{1,2}Packages.duckduckgo-search: add passthru optinal dependency lxml

This commit is contained in:
Clément
2024-05-10 20:08:35 +02:00
parent 4157ec3ea6
commit 28440a293f
@@ -7,7 +7,12 @@
setuptools,
orjson,
curl-cffi,
# To build orjson
rustPlatform,
# Optional dependencies
lxml,
}:
let
curl-cffi_0_7_0 = curl-cffi.overrideAttrs (
@@ -61,6 +66,10 @@ buildPythonPackage rec {
curl-cffi_0_7_0
];
passthru.optional-dependencies = {
lxml = [ lxml ];
};
doCheck = false; # tests require network access
pythonImportsCheck = [ "duckduckgo_search" ];