python3Packages.webdataset: 0.3.2 -> 1.0.2, python3Packages.open-clip-torch: 3.1.0 -> 3.2.0 (#445067)

Nick Cao 81f812ed 6457b8e4

Changed files
+18 -42
pkgs
development
python-modules
open-clip-torch
webdataset
+5 -9
pkgs/development/python-modules/open-clip-torch/default.nix
···
pandas,
transformers,
webdataset,
-
-
stdenv,
}:
buildPythonPackage rec {
pname = "open-clip-torch";
-
version = "3.1.0";
+
version = "3.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "mlfoundations";
repo = "open_clip";
tag = "v${version}";
-
hash = "sha256-xDXxhncX0l9qwbV4Gk4rOROH6Qyit/FSTgjrg4Vbk1s=";
+
hash = "sha256-k4/u0XtfBmPSVKfEK3wHqJXtKAuUNkUnk1TLG2S6PPs=";
};
build-system = [ pdm-backend ];
···
"test_inference_with_data"
"test_pretrained_text_encoder"
"test_training_mt5"
+
# fails due to type errors
"test_num_shards"
-
]
-
++ lib.optionals (stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isLinux) [
+
+
# hangs forever
"test_training"
-
"test_training_coca"
-
"test_training_unfreezing_vit"
-
"test_training_clip_with_jit"
];
meta = {
+13 -33
pkgs/development/python-modules/webdataset/default.nix
···
{
lib,
-
stdenv,
buildPythonPackage,
fetchFromGitHub,
+
curl,
# build-system
setuptools,
···
}:
buildPythonPackage rec {
pname = "webdataset";
-
version = "0.3.2";
+
version = "1.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "webdataset";
repo = "webdataset";
-
tag = "v${version}";
-
hash = "sha256-gjZTLf0MqSNCxyAd0H1vCF4ZptIRlY2G3l6KGTwp/Ek=";
+
# recent versions are not tagged on GitHub
+
rev = "0773837ecd298587fc89c4f944ef346ef1a6b619";
+
hash = "sha256-jFFRp5W9yP1mKi9x43EdOakFAd9ArnDqH3dnvFOeCmc=";
};
+
postPatch = ''
+
substituteInPlace src/webdataset/gopen.py \
+
--replace-fail \
+
'"curl"' \
+
'"${lib.getExe curl}"'
+
'';
+
build-system = [
setuptools
];
···
pythonImportsCheck = [ "webdataset" ];
-
preCheck = ''
-
export WIDS_CACHE=$TMPDIR
-
'';
-
disabledTests = [
-
# requires network
+
# Require network
"test_batched"
"test_cache_dir"
-
"test_concurrent_download_and_open"
"test_dataloader"
"test_decode_handlers"
"test_decoder"
-
"test_download"
"test_handlers"
"test_pipe"
"test_remote_file"
"test_shard_syntax"
"test_torchvision"
"test_unbatched"
-
"test_yaml3"
-
]
-
++ lib.optionals stdenv.hostPlatform.isDarwin [
-
# pickling error
-
"test_background_download"
-
]
-
++ lib.optionals (stdenv.hostPlatform.isx86_64 && stdenv.hostPlatform.isDarwin) [
-
"test_concurrent_access"
-
]
-
++ lib.optionals (stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isLinux) [
-
# segfaults on aarch64-linux
-
"test_webloader"
-
"test_webloader2"
-
"test_webloader_repeat"
-
"test_webloader_unbatched"
-
];
-
-
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
-
# Issue with creating a temp file in the sandbox
-
"tests/wids/test_wids_mmtar.py"
-
# hangs the build *after* the tests
-
"tests/webdataset/test_loaders.py"
];
meta = {