It looks like you may just need to specify some dependencies for the package you’re building. Try adding something like this in your buildPythonPackage call:
{
vpn-slice = pkgs.python3Packages.buildPythonPackage rec {
name = "vpn-slice";
# ...
propagatedBuildInputs = with pkgs.python3Packages; [ setproctitle ];
};
}