summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2023-01-12 18:43:22 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2023-01-14 20:20:52 +0100
commit2daf31d0aa604f95cdce4376565e54a6924fdce7 (patch)
tree6dfe1ce4866b88624e4d5a1b13337a6fa7d6b519
parenteb29a9d61d6864f311dfa670501e76d7649c0a10 (diff)
python3Packages.fssspec: Expose optional-dependencies
-rw-r--r--pkgs/development/python-modules/fsspec/default.nix83
1 files changed, 83 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/fsspec/default.nix b/pkgs/development/python-modules/fsspec/default.nix
index 452d9b49edfe..4eebfdf5d0a5 100644
--- a/pkgs/development/python-modules/fsspec/default.nix
+++ b/pkgs/development/python-modules/fsspec/default.nix
@@ -13,6 +13,20 @@
, requests
, smbprotocol
, tqdm
+
+# optionals
+, adlfs
+, dask
+, distributed
+, dropbox
+, fusepy
+, gcsfs
+, libarchive-c
+, ocifs
+, panel
+, pyarrow
+, pygit2
+, s3fs
}:
buildPythonPackage rec {
@@ -37,6 +51,75 @@ buildPythonPackage rec {
tqdm
];
+ passthru.optional-dependencies = {
+ entrypoints = [
+ ];
+ abfs = [
+ adlfs
+ ];
+ adl = [
+ adlfs
+ ];
+ dask = [
+ dask
+ distributed
+ ];
+ dropbox = [
+ # missing dropboxdrivefs
+ requests
+ dropbox
+ ];
+ gcs = [
+ gcsfs
+ ];
+ git = [
+ pygit2
+ ];
+ github = [
+ requests
+ ];
+ gs = [
+ gcsfs
+ ];
+ hdfs = [
+ pyarrow
+ ];
+ arrow = [
+ pyarrow
+ ];
+ http = [
+ aiohttp
+ requests
+ ];
+ sftp = [
+ paramiko
+ ];
+ s3 = [
+ s3fs
+ ];
+ oci = [
+ ocifs
+ ];
+ smb = [
+ smbprotocol
+ ];
+ ssh = [
+ paramiko
+ ];
+ fuse = [
+ fusepy
+ ];
+ libarchive = [
+ libarchive-c
+ ];
+ gui = [
+ panel
+ ];
+ tqdm = [
+ tqdm
+ ];
+ };
+
checkInputs = [
numpy
pytest-asyncio