Commit bf50dab4 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

python3Packages.huggingface-hub: add versionCheckHook

parent 00c6d886
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -36,6 +36,9 @@
  graphviz,
  # tensorflow-testing
  keras,

  # tests
  versionCheckHook,
}:

buildPythonPackage rec {
@@ -100,8 +103,10 @@ buildPythonPackage rec {
    ];
  };

  # Tests require network access.
  doCheck = false;
  nativeCheckInputs = [
    versionCheckHook
  ];
  versionCheckProgramArg = "version";

  pythonImportsCheck = [ "huggingface_hub" ];