diff --git a/pkgs/development/python-modules/ome-zarr-models/default.nix b/pkgs/development/python-modules/ome-zarr-models/default.nix index 2446794262ad..cacc2b72cd26 100644 --- a/pkgs/development/python-modules/ome-zarr-models/default.nix +++ b/pkgs/development/python-modules/ome-zarr-models/default.nix @@ -9,6 +9,7 @@ hatchling, # dependencies + numpy, pydantic, pydantic-zarr, zarr, @@ -17,29 +18,32 @@ aiohttp, fsspec, pytest-cov-stub, + pytest-doctestplus, pytest-vcr, pytestCheckHook, }: buildPythonPackage (finalAttrs: { pname = "ome-zarr-models"; - version = "1.7"; + version = "1.8.1"; pyproject = true; - __structuredAttrs = true; src = fetchFromGitHub { owner = "ome-zarr-models"; repo = "ome-zarr-models-py"; tag = "v${finalAttrs.version}"; - hash = "sha256-UT/LvbTGo6UueEUwELqnfhERvxtg04Ukrcpo1yTa80c="; + hash = "sha256-yC62hrlv3OOSXp6c3et3ZRa51iMHQkyXv1W7eyJCxlM="; }; + pythonRelaxDeps = [ "pydantic" ]; + build-system = [ hatch-vcs hatchling ]; dependencies = [ + numpy pydantic pydantic-zarr zarr @@ -51,14 +55,19 @@ buildPythonPackage (finalAttrs: { aiohttp fsspec pytest-cov-stub + pytest-doctestplus pytest-vcr pytestCheckHook ]; + pytestFlags = [ "--override-ini=testpaths=tests" ]; + disabledTests = [ # Require internet connection "test_bioformats2raw_get_image" "test_load_remote_data" + # AssertionError + "test_get_all_zarrs" ] ++ lib.optionals (pythonAtLeast "3.14") [ # pydantic.errors.PydanticUserError: `Image` is not fully defined; you should define all