1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00
nixpkgs/pkgs/top-level
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
..
aliases.nix weechatScripts.weechat-xmpp: remove 2019-09-05 20:03:46 +02:00
all-packages.nix Merge branch 'master' into staging-next 2019-09-06 03:20:09 +02:00
beam-packages.nix treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
config.nix
coq-packages.nix coq: make version 8.9 the default one 2019-08-21 12:07:38 +00:00
darwin-packages.nix
default.nix
dotnet-packages.nix treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
emacs-packages.nix emacs-packages: Make org packages overrideable 2019-08-18 11:10:06 +01:00
emscripten-packages.nix treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
haskell-packages.nix treewide: remove redundant quotes 2019-08-26 21:40:19 +00:00
haxe-packages.nix treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
impure.nix
java-packages.nix
lua-packages.nix lua*Packages: Consolidate separate setup hooks together 2019-09-01 17:42:20 +02:00
make-tarball.nix treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
metrics.nix
ocaml-packages.nix ocamlPackages.ocplib-json-typed: 0.5 -> 0.7.1 2019-09-03 05:31:11 +00:00
perl-packages.nix tree-wide: s/GTK+/GTK/g 2019-09-06 02:54:53 +02:00
php-packages.nix treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
pure-packages.nix
python-packages.nix Split buildPythonPackage into setup hooks 2019-09-06 15:18:45 +02:00
release-cross.nix
release-lib.nix
release-python.nix
release-small.nix treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
release.nix Merge branch 'master' into staging-next 2019-09-06 03:20:09 +02:00
ruby-packages.nix ruby.withPackages: init 2019-09-03 19:44:49 +00:00
splice.nix
stage.nix treewide: remove redundant quotes 2019-08-26 21:40:19 +00:00
static.nix Merge pull request #65537 from Holo-Host/201907/extend-static 2019-08-13 12:47:03 -04:00
unix-tools.nix
wine-packages.nix