nixpkgs/pkgs
Frederik Rietdijk f7e28bf5d8 Split buildPythonPackage into setup hooks
This commit splits the `buildPythonPackage` into multiple setup hooks.

Generally, Python packages are built from source to wheels using `setuptools`.
The wheels are then installed with `pip`. Tests were often called with
`python setup.py test` but this is less common nowadays. Most projects
now use a different entry point for running tests, typically `pytest`
or `nosetests`.

Since the wheel format was introduced more tools were built to generate these,
e.g. `flit`. Since PEP 517 is provisionally accepted, defining a build-system
independent format (`pyproject.toml`), `pip` can now use that format to
execute the correct build-system.

In the past I've added support for PEP 517 (`pyproject`) to the Python
builder, resulting in a now rather large builder. Furthermore, it was not possible
to reuse components elsewhere. Therefore, the builder is now split into multiple
setup hooks.

The `setuptoolsCheckHook` is included now by default but in time it should
be removed from `buildPythonPackage` to make it easier to use another hook
(curently one has to pass in `dontUseSetuptoolsCheck`).
2019-09-06 15:18:45 +02:00
..
applications Merge branch 'master' into staging-next 2019-09-06 03:20:09 +02:00
build-support Merge branch 'master' into staging-next 2019-09-06 03:20:09 +02:00
common-updater
data Merge branch 'master' into staging-next 2019-09-06 03:20:09 +02:00
desktops Merge branch 'master' into staging-next 2019-09-06 03:20:09 +02:00
development Split buildPythonPackage into setup hooks 2019-09-06 15:18:45 +02:00
games Merge staging-next into staging 2019-08-31 18:07:33 +02:00
misc Merge branch 'master' into staging-next 2019-09-06 03:20:09 +02:00
os-specific Merge branch 'staging-next' into staging 2019-09-06 03:21:30 +02:00
servers Merge branch 'staging-next' into staging 2019-09-06 03:21:30 +02:00
shells Merge branch 'master' into staging-next 2019-09-04 11:00:56 +02:00
stdenv Merge branch 'master' into staging 2019-09-02 23:25:24 +02:00
test treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
tools Merge branch 'master' into staging-next 2019-09-06 03:20:09 +02:00
top-level Split buildPythonPackage into setup hooks 2019-09-06 15:18:45 +02:00