{ lib, buildPythonPackage, fetchFromGitHub, # build-system setuptools, # dependencies aiobotocore, aiohttp, fsspec, # tests flask, flask-cors, moto, pytest-asyncio, pytestCheckHook, }: buildPythonPackage rec { pname = "s3fs"; version = "2025.9.0"; pyproject = true; src = fetchFromGitHub { owner = "fsspec"; repo = "s3fs"; tag = version; hash = "sha256-Wb9y2l6/J0EQQwB4AqasqvSVSURylkoh2D2wvw4NjlE="; }; build-system = [ setuptools ]; pythonRelaxDeps = [ "fsspec" ]; dependencies = [ aiobotocore fsspec aiohttp ]; optional-dependencies = { awscli = aiobotocore.optional-dependencies.awscli; boto3 = aiobotocore.optional-dependencies.boto3; }; pythonImportsCheck = [ "s3fs" ]; nativeCheckInputs = [ flask flask-cors moto pytest-asyncio pytestCheckHook ]; disabledTests = [ # require network access "test_async_close" ]; __darwinAllowLocalNetworking = true; meta = { description = "Pythonic file interface for S3"; homepage = "https://github.com/fsspec/s3fs"; changelog = "https://github.com/fsspec/s3fs/blob/${version}/docs/source/changelog.rst"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ teh ]; }; }