Unverified Commit f7bf632a authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

python312Packages.s3fs: 2024.12.0 -> 2025.2.0 (#382057)

parents 8d753f48 232ef930
Loading
Loading
Loading
Loading
+17 −10
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  pythonOlder,
  fetchFromGitHub,
  pytestCheckHook,

  # build-system
  setuptools,
  setuptools-scm,

  # dependencies
  aiohttp,
  dask,
  distributed,
@@ -11,9 +15,11 @@
  numpy,
  requests,
  scikit-image,
  setuptools,
  toolz,
  zarr,

  # tests
  pytestCheckHook,
}:

buildPythonPackage rec {
@@ -21,8 +27,6 @@ buildPythonPackage rec {
  version = "0.10.3";
  pyproject = true;

  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "ome";
    repo = "ome-zarr-py";
@@ -32,21 +36,24 @@ buildPythonPackage rec {

  build-system = [
    setuptools
    setuptools-scm
  ];

  dependencies = [
    numpy
    aiohttp
    dask
    distributed
    zarr
    fsspec
    aiohttp
    numpy
    requests
    scikit-image
    toolz
    zarr
  ] ++ fsspec.optional-dependencies.s3;

  nativeCheckInputs = [ pytestCheckHook ];
  nativeCheckInputs = [
    pytestCheckHook
  ];

  disabledTests = [
    # attempts to access network
@@ -90,7 +97,7 @@ buildPythonPackage rec {
  meta = {
    description = "Implementation of next-generation file format (NGFF) specifications for storing bioimaging data in the cloud";
    homepage = "https://pypi.org/project/ome-zarr";
    changelog = "https://github.com/ome/ome-zarr-py/blob/${src.tag}/CHANGELOG.md";
    changelog = "https://github.com/ome/ome-zarr-py/blob/v${version}/CHANGELOG.md";
    license = lib.licenses.bsd2;
    maintainers = [ lib.maintainers.bcdarwin ];
    mainProgram = "ome_zarr";
+65 −56
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,

@@ -49,7 +50,6 @@
  pytest-mock,
  pytest-timeout,
  requests-mock,
  pythonOlder,
}:

buildPythonPackage rec {
@@ -185,7 +185,8 @@ buildPythonPackage rec {
    "tests/integration"
  ];

  disabledTests = [
  disabledTests =
    [
      # botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL
      "test_checking_if_a_file_exists"
      "test_closing_a_file"
@@ -239,8 +240,16 @@ buildPythonPackage rec {

      # Hangs forever (from tests/io/test_pyarrow.py)
      "test_getting_length_of_file_gcs"
    ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [
      # ImportError: The pyarrow installation is not built with support for 'GcsFileSystem'
      "test_converting_an_outputfile_to_an_inputfile_gcs"
      "test_new_input_file_gcs"
      "test_new_output_file_gc"
    ];

  __darwinAllowLocalNetworking = true;

  meta = {
    description = "Python library for programmatic access to Apache Iceberg";
    homepage = "https://github.com/apache/iceberg-python";
+100 −13
Original line number Diff line number Diff line
{
  lib,
  aiobotocore,
  aiohttp,
  buildPythonPackage,
  fetchFromGitHub,

  # buildInputs
  docutils,
  fetchPypi,

  # build-system
  setuptools,

  # dependencies
  aiobotocore,
  aiohttp,
  fsspec,

  # tests
  flask,
  flask-cors,
  fsspec,
  moto,
  pytestCheckHook,
  pythonOlder,
  setuptools,
}:

buildPythonPackage rec {
  pname = "s3fs";
  version = "2024.12.0";
  version = "2025.2.0";
  pyproject = true;

  disabled = pythonOlder "3.9";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-Gw86j1lGzKW6KYcdZ5KrHkUo7XYjJ9iu+vyBtzuZ/VY=";
  src = fetchFromGitHub {
    owner = "fsspec";
    repo = "s3fs";
    tag = version;
    hash = "sha256-nnfvccORDspj54sRxL3d0hn4MpzKYGKE2Kl0v/wLaNw=";
  };

  buildInputs = [ docutils ];

  build-system = [ setuptools ];

  pythonRelaxDeps = [
    "fsspec"
  ];

  dependencies = [
    aiobotocore
    aiohttp
@@ -48,12 +59,88 @@ buildPythonPackage rec {
  disabledTests = [
    # require network access
    "test_async_close"

    # AssertionError: assert ['x', 'y'] == []
    "test_with_data"

    # AssertionError: assert ['1', 'x', 'y'] == []
    "test_clear_empty"
    "test_no_dircache"

    # KeyError: 'ChecksumAlgorithm'
    "test_info"

    # KeyError:
    # del d[1]
    "test_complex_keys"

    # TypeError: string indices must be integers, not 'str'
    "test_bucket_versioning"
    "test_bulk_delete"
    "test_copy_with_source_and_destination_as_list"
    "test_cp_directory_recursive"
    "test_dynamic_add_rm"
    "test_get_directory_to_existing_directory"
    "test_get_directory_to_new_directory"
    "test_get_directory_without_files_with_same_name_prefix"
    "test_get_file_info_with_selector"
    "test_get_file_to_existing_directory"
    "test_get_file_to_file_in_existing_directory"
    "test_get_file_to_file_in_new_directory"
    "test_get_file_to_new_directory"
    "test_get_glob_edge_cases"
    "test_get_glob_to_existing_directory"
    "test_get_glob_to_new_directory"
    "test_get_list_of_files_to_existing_directory"
    "test_get_list_of_files_to_new_directory"
    "test_get_with_source_and_destination_as_list"
    "test_move[False]"
    "test_move[True]"
    "test_new_bucket"
    "test_new_bucket_auto"
    "test_pipe_exclusive"
    "test_put_directory_recursive"
    "test_put_directory_to_existing_directory"
    "test_put_directory_to_new_directory"
    "test_put_directory_without_files_with_same_name_prefix"
    "test_put_file_to_existing_directory"
    "test_put_file_to_file_in_existing_directory"
    "test_put_file_to_file_in_new_directory"
    "test_put_file_to_new_directory"
    "test_put_glob_edge_cases"
    "test_put_glob_to_existing_directory"
    "test_put_glob_to_new_directory"
    "test_put_list_of_files_to_existing_directory"
    "test_put_list_of_files_to_new_directory"
    "test_rm"
    "test_rm_invalidates_cache"
    "test_rm_recursive_folder"
    "test_s3_big_ls"
    "test_s3fs_etag_preserving_multipart_copy"
    "test_tags"

    # ExceptionGroup: errors while tearing down <Function test_copy_two_files_new_directory> (2 sub-exceptions)
    "test_copy_directory_to_existing_directory"
    "test_copy_directory_to_new_directory"
    "test_copy_directory_without_files_with_same_name_prefix"
    "test_copy_file_to_existing_directory"
    "test_copy_file_to_file_in_existing_directory"
    "test_copy_file_to_file_in_new_directory"
    "test_copy_file_to_new_directory"
    "test_copy_glob_edge_cases"
    "test_copy_glob_to_existing_directory"
    "test_copy_glob_to_new_directory"
    "test_copy_list_of_files_to_existing_directory"
    "test_copy_list_of_files_to_new_directory"
    "test_copy_two_files_new_directory"
  ];

  __darwinAllowLocalNetworking = true;

  meta = {
    description = "Pythonic file interface for S3";
    homepage = "https://github.com/fsspec/s3fs";
    changelog = "https://github.com/fsspec/s3fs/raw/${version}/docs/source/changelog.rst";
    changelog = "https://github.com/fsspec/s3fs/blob/${version}/docs/source/changelog.rst";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ teh ];
  };