use standard setuptools logic for python_requires. This has been included in setuptools since v24.2.0, July 2016.
Exclude the test directory from being copied to the output directory. This is especially critical for Nix, where (accidentally) repeated test directories can cause collisions that prevent environments from being built.
Makes two changes: