python311Packages.webdataset: disable failing tests on darwin

This commit is contained in:
Gaetan Lepage 2024-06-17 15:17:06 +02:00
parent 6acfb07b7f
commit 485f139ae8

View File

@ -27,12 +27,12 @@ buildPythonPackage rec {
hash = "sha256-selj7XD7NS831lbPnx/4o46bNpsxuFdSEIIb4S2b7S0="; hash = "sha256-selj7XD7NS831lbPnx/4o46bNpsxuFdSEIIb4S2b7S0=";
}; };
nativeBuildInputs = [ build-system = [
setuptools setuptools
wheel wheel
]; ];
propagatedBuildInputs = [ dependencies = [
braceexpand braceexpand
numpy numpy
pyyaml pyyaml
@ -84,12 +84,20 @@ buildPythonPackage rec {
"test_webloader_unbatched" "test_webloader_unbatched"
]; ];
meta = with lib; { disabledTestPaths = lib.optionals stdenv.isDarwin [
# AttributeError: <module 'torch.distributed' from /nix/store/...
"tests/test_wids.py"
# Issue with creating a temp file in the sandbox
"tests/test_wids_mmtar.py"
];
meta = {
description = "High-performance Python-based I/O system for large (and small) deep learning problems, with strong support for PyTorch"; description = "High-performance Python-based I/O system for large (and small) deep learning problems, with strong support for PyTorch";
mainProgram = "widsindex"; mainProgram = "widsindex";
homepage = "https://github.com/webdataset/webdataset"; homepage = "https://github.com/webdataset/webdataset";
changelog = "https://github.com/webdataset/webdataset/releases/tag/${version}"; changelog = "https://github.com/webdataset/webdataset/releases/tag/${version}";
license = licenses.bsd3; license = lib.licenses.bsd3;
maintainers = with maintainers; [ iynaix ]; maintainers = with lib.maintainers; [ iynaix ];
}; };
} }