diff --git a/pkgs/development/python-modules/huggingface-hub/default.nix b/pkgs/development/python-modules/huggingface-hub/default.nix index 291bfd313e1c..ea110609e84d 100644 --- a/pkgs/development/python-modules/huggingface-hub/default.nix +++ b/pkgs/development/python-modules/huggingface-hub/default.nix @@ -15,7 +15,7 @@ pyyaml, shellingham, tqdm, - typer-slim, + typer, typing-extensions, # optional-dependencies @@ -45,6 +45,11 @@ buildPythonPackage (finalAttrs: { hash = "sha256-At3FN+dplQ3L9B4vDZrEvREdwgepUvzWC7yeU6L5XY8="; }; + postPatch = '' + substituteInPlace setup.py \ + --replace-fail "typer-slim" "typer" + ''; + build-system = [ setuptools ]; dependencies = [ @@ -56,7 +61,7 @@ buildPythonPackage (finalAttrs: { pyyaml shellingham tqdm - typer-slim + typer typing-extensions ]; diff --git a/pkgs/development/python-modules/transformers/default.nix b/pkgs/development/python-modules/transformers/default.nix index c22751f5d4f0..e3f1050f8f45 100644 --- a/pkgs/development/python-modules/transformers/default.nix +++ b/pkgs/development/python-modules/transformers/default.nix @@ -15,7 +15,7 @@ safetensors, tokenizers, tqdm, - typer-slim, + typer, # optional-dependencies # sklearn @@ -103,6 +103,11 @@ buildPythonPackage (finalAttrs: { hash = "sha256-vus4Y+1QXUNqwBO1ZK0gWd+sJBPwrqWW7O2sn0EBvno="; }; + postPatch = '' + substituteInPlace setup.py \ + --replace-fail "typer-slim" "typer" + ''; + build-system = [ setuptools ]; dependencies = [ @@ -114,7 +119,7 @@ buildPythonPackage (finalAttrs: { safetensors tokenizers tqdm - typer-slim + typer ]; optional-dependencies = lib.fix (self: {