Then you need to quote it:

```
gentoo: ['dev-libs/boost[python]']
```

I'm not sure how the `gentoo` module for `rosdep` works, but you should be able to specify use flags some how.