PEP 508 describes how to set additional specifications for dependencies. This can be used for example to specify that a dependency should only be installed on Linux systems.