python3Packages.pooch: add optional-dependencies

This commit is contained in:
Phillip Cloud 2023-04-14 08:14:15 -04:00
parent 99a95083df
commit 310a715b99
No known key found for this signature in database
GPG Key ID: D908212070FD785E

View File

@ -7,6 +7,9 @@
, packaging , packaging
, appdirs , appdirs
, requests , requests
, tqdm
, paramiko
, xxhash
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -44,6 +47,14 @@ buildPythonPackage rec {
"integration" "integration"
]; ];
passthru = {
optional-dependencies = {
progress = [ tqdm ];
sftp = [ paramiko ];
xxhash = [ xxhash ];
};
};
meta = with lib; { meta = with lib; {
description = "A friend to fetch your data files."; description = "A friend to fetch your data files.";
homepage = "https://github.com/fatiando/pooch"; homepage = "https://github.com/fatiando/pooch";