python3Packages.huggingface-hub: add versionCheckHook

This commit is contained in:
Gaetan Lepage
2025-09-23 22:24:26 +00:00
parent 00c6d886b2
commit bf50dab494
@@ -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" ];