import copy


def make_param_spec(param_spec, location):
    """Copy given parameter specification and add location ('in' property) to it."""
    new_spec = copy.deepcopy(param_spec)
    new_spec['in'] = location
    return new_spec