diff options
Diffstat (limited to 'pkgs/development/python-modules/huggingface-hub/default.nix')
-rw-r--r-- | pkgs/development/python-modules/huggingface-hub/default.nix | 45 |
1 files changed, 21 insertions, 24 deletions
diff --git a/pkgs/development/python-modules/huggingface-hub/default.nix b/pkgs/development/python-modules/huggingface-hub/default.nix index 7717982dd4e07..18d2efa4bd062 100644 --- a/pkgs/development/python-modules/huggingface-hub/default.nix +++ b/pkgs/development/python-modules/huggingface-hub/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, filelock -, fsspec -, packaging -, pyyaml -, requests -, tqdm -, typing-extensions +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + filelock, + fsspec, + packaging, + pyyaml, + requests, + tqdm, + typing-extensions, }: buildPythonPackage rec { pname = "huggingface-hub"; - version = "0.22.2"; + version = "0.23.3"; pyproject = true; disabled = pythonOlder "3.8"; @@ -23,14 +24,12 @@ buildPythonPackage rec { owner = "huggingface"; repo = "huggingface_hub"; rev = "refs/tags/v${version}"; - hash = "sha256-Y/oUF+d6Oo45x9cufZxjaJCQpoY0acPhetbyAt8M3pQ="; + hash = "sha256-878ijhVxvVvytYZTpCBbmo3GsU1bvOl2HXlPu0E/xtQ="; }; - nativeBuildInputs = [ - setuptools - ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ filelock fsspec packaging @@ -43,16 +42,14 @@ buildPythonPackage rec { # Tests require network access. doCheck = false; - pythonImportsCheck = [ - "huggingface_hub" - ]; + pythonImportsCheck = [ "huggingface_hub" ]; - meta = with lib; { + meta = { description = "Download and publish models and other files on the huggingface.co hub"; mainProgram = "huggingface-cli"; homepage = "https://github.com/huggingface/huggingface_hub"; changelog = "https://github.com/huggingface/huggingface_hub/releases/tag/v${version}"; - license = licenses.asl20; - maintainers = with maintainers; [ ]; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ GaetanLepage ]; }; } |