diff options
Diffstat (limited to 'pkgs/development/python-modules/webdataset/default.nix')
-rw-r--r-- | pkgs/development/python-modules/webdataset/default.nix | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/pkgs/development/python-modules/webdataset/default.nix b/pkgs/development/python-modules/webdataset/default.nix index 3c5b74eed4ae..07c43828b2ab 100644 --- a/pkgs/development/python-modules/webdataset/default.nix +++ b/pkgs/development/python-modules/webdataset/default.nix @@ -2,34 +2,38 @@ lib, stdenv, buildPythonPackage, + fetchFromGitHub, + + # build-system + setuptools, + + # dependencies braceexpand, + numpy, + pyyaml, + + # tests imageio, lmdb, msgpack, - numpy, pytestCheckHook, - pyyaml, - setuptools, torch, torchvision, - wheel, - fetchFromGitHub, }: buildPythonPackage rec { pname = "webdataset"; - version = "0.2.100"; + version = "0.2.107"; pyproject = true; src = fetchFromGitHub { owner = "webdataset"; repo = "webdataset"; - rev = "refs/tags/${version}"; - hash = "sha256-+Rvb4VY4qBcVKM1CUkLZTQdlZklpHcuiMO8r6VNInLc="; + rev = "refs/tags/v${version}"; + hash = "sha256-L9RUQItmW/7O/eTst2Sl/415EP4Jo662bKWbYA6p5bk="; }; build-system = [ setuptools - wheel ]; dependencies = [ @@ -39,12 +43,12 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ - pytestCheckHook imageio + lmdb + msgpack + pytestCheckHook torch torchvision - msgpack - lmdb ]; pythonImportsCheck = [ "webdataset" ]; @@ -67,16 +71,16 @@ buildPythonPackage rec { "test_unbatched" "test_yaml3" ] - ++ lib.optionals stdenv.isDarwin [ + ++ lib.optionals stdenv.hostPlatform.isDarwin [ # pickling error "test_background_download" ] - ++ lib.optionals (stdenv.isx86_64 && stdenv.isDarwin) [ + ++ lib.optionals (stdenv.hostPlatform.isx86_64 && stdenv.hostPlatform.isDarwin) [ "test_concurrent_access" # fails to patch 'init_process_group' from torch.distributed "TestDistributedChunkedSampler" ] - ++ lib.optionals (stdenv.isAarch64 && stdenv.isLinux) [ + ++ lib.optionals (stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isLinux) [ # segfaults on aarch64-linux "test_webloader" "test_webloader2" @@ -84,12 +88,12 @@ buildPythonPackage rec { "test_webloader_unbatched" ]; - disabledTestPaths = lib.optionals stdenv.isDarwin [ + disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ # AttributeError: <module 'torch.distributed' from /nix/store/... - "tests/test_wids.py" + "tests/wids/test_wids.py" # Issue with creating a temp file in the sandbox - "tests/test_wids_mmtar.py" + "tests/wids/test_wids_mmtar.py" ]; meta = { |