coverage.py tries hard to not measure code in site-packages because generally that is third-party code that you don't want to measure. In addition, you are using --cov=src
which means to measure the code in the src directory. Manually copying code into site-packages seems very unusual.
Perhaps you want to use pip install -e .
to install your working directory as the libraries runnable code?