yt-dlp: expose optional-dependencies

This is required so that other packages, that want to consume them can
resolve them.
This commit is contained in:
Martin Weinelt
2024-11-07 19:05:06 +01:00
parent 9657b7e87e
commit 4acbaa55d2
+19 -11
View File
@@ -30,17 +30,25 @@ python3Packages.buildPythonApplication rec {
hatchling
];
dependencies = with python3Packages; [
brotli
certifi
curl-cffi
mutagen
pycryptodomex
requests
secretstorage # "optional", as in not in requirements.txt, needed for `--cookies-from-browser`
urllib3
websockets
];
# expose optional-dependencies, but provide all features
dependencies = lib.flatten (lib.attrValues optional-dependencies);
optional-dependencies = {
default = with python3Packages; [
brotli
certifi
mutagen
pycryptodomex
requests
urllib3
websockets
];
curl-cffi = [ python3Packages.curl-cffi ];
secretstorage = with python3Packages; [
cffi
secretstorage
];
};
pythonRelaxDeps = [ "websockets" ];