Unverified Commit b1c62e4d authored by Yt's avatar Yt Committed by GitHub
Browse files

python3Packages.transformers: 5.2.0 -> 5.3.0 (#496691)

parents 70744865 e9e4e359
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -13,7 +13,6 @@
  httpx,
  packaging,
  pyyaml,
  shellingham,
  tqdm,
  typer,
  typing-extensions,
@@ -35,21 +34,16 @@

buildPythonPackage (finalAttrs: {
  pname = "huggingface-hub";
  version = "1.4.1";
  version = "1.5.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "huggingface";
    repo = "huggingface_hub";
    tag = "v${finalAttrs.version}";
    hash = "sha256-At3FN+dplQ3L9B4vDZrEvREdwgepUvzWC7yeU6L5XY8=";
    hash = "sha256-XuqZvTu3DuncGpRWXipxtDLY2alY7QVm89ZmpgTdfVo=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace-fail "typer-slim" "typer"
  '';

  build-system = [ setuptools ];

  dependencies = [
@@ -59,7 +53,6 @@ buildPythonPackage (finalAttrs: {
    httpx
    packaging
    pyyaml
    shellingham
    tqdm
    typer
    typing-extensions
+2 −7
Original line number Diff line number Diff line
@@ -93,21 +93,16 @@

buildPythonPackage (finalAttrs: {
  pname = "transformers";
  version = "5.2.0";
  version = "5.3.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "huggingface";
    repo = "transformers";
    tag = "v${finalAttrs.version}";
    hash = "sha256-vus4Y+1QXUNqwBO1ZK0gWd+sJBPwrqWW7O2sn0EBvno=";
    hash = "sha256-5FzsPIG4dFTR2WgcZbdmVwwwY9Dkqu5aprl5uIIalD0=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace-fail "typer-slim" "typer"
  '';

  build-system = [ setuptools ];

  dependencies = [