Restrict swh dependencies into a buildable module
This fixes ci build failure [1]
[1] https://jenkins.softwareheritage.org/job/DLDHG/job/tests/691