Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python312Packages.transformers: 4.45.1 -> 4.45.2 #347157

Merged
merged 3 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions pkgs/development/python-modules/argostranslate/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
lib,
stdenv,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
Expand Down Expand Up @@ -54,10 +55,12 @@ buildPythonPackage rec {
"argostranslate.translate"
];

meta = with lib; {
meta = {
description = "Open-source offline translation library written in Python";
homepage = "https://www.argosopentech.com";
license = licenses.mit;
maintainers = with maintainers; [ misuzu ];
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ misuzu ];
# Segfaults at import
broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64;
};
}
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/transformers/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@

buildPythonPackage rec {
pname = "transformers";
version = "4.45.1";
version = "4.45.2";
pyproject = true;

src = fetchFromGitHub {
owner = "huggingface";
repo = "transformers";
rev = "refs/tags/v${version}";
hash = "sha256-5fGEnw4YllQdZV/0vDGXYsCyTw0rtPRD/V7UWoBBZjQ=";
hash = "sha256-5Ric+pEbBf6HswsPb8cdVLdqTRgicFjzcrk0oO2PtC0=";
};

build-system = [ setuptools ];
Expand Down
26 changes: 15 additions & 11 deletions pkgs/development/python-modules/webdataset/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,23 @@
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";
Expand All @@ -29,7 +34,6 @@ buildPythonPackage rec {

build-system = [
setuptools
wheel
];

dependencies = [
Expand All @@ -39,12 +43,12 @@ buildPythonPackage rec {
];

nativeCheckInputs = [
pytestCheckHook
imageio
lmdb
msgpack
pytestCheckHook
torch
torchvision
msgpack
lmdb
];

pythonImportsCheck = [ "webdataset" ];
Expand Down Expand Up @@ -86,10 +90,10 @@ buildPythonPackage rec {

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 = {
Expand Down