diff --git a/packaging-pypi/bitbake-setup/pyproject.toml b/packaging-pypi/bitbake-setup/pyproject.toml
index 90ed1ffb98..0cd2d37803 100644
--- a/packaging-pypi/bitbake-setup/pyproject.toml
+++ b/packaging-pypi/bitbake-setup/pyproject.toml
@@ -20,7 +20,9 @@ classifiers = [
 ]
 
 dependencies = [
-  # bitbake-setup is mostly self-contained
+  # bitbake-setup is mostly self-contained, but hashserver needs websockets
+  "websockets >= 9.0; python_version == '3.9'",
+  "websockets >= 10.0; python_version >= '3.10'"
 ]
 
 [project.optional-dependencies]
