Merge pull request #243848 from SuperSandro2000/clarify-python-tools

docs/python: clarify allowance of using toosl to autogenerate packages
This commit is contained in:
Martin Weinelt 2023-07-24 20:16:07 +02:00 committed by GitHub
commit f00b8343d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1514,11 +1514,11 @@ Note: There is a boolean value `lib.inNixShell` set to `true` if nix-shell is in
### Tools {#tools}
Packages inside nixpkgs are written by hand. However many tools exist in
community to help save time. No tool is preferred at the moment.
Packages inside nixpkgs must use the `buildPythonPackage` or `buildPythonApplication` function directly,
because we can only provide security support for non-vendored dependencies.
- [nixpkgs-pytools](https://github.com/nix-community/nixpkgs-pytools)
- [poetry2nix](https://github.com/nix-community/poetry2nix)
We recommend [nix-init](https://github.com/nix-community/nix-init) for creating new python packages within nixpkgs,
as it already prefetches the source, parses dependencies for common formats and prefills most things in `meta`.
### Deterministic builds {#deterministic-builds}