docs: show pyproject = true; instead of format = "pyproject";
every other format is deprecated, so to imply that people should be setting it is misleading (`pyproject = true` should also go away eventually, but is the way until then)
This commit is contained in:
@@ -162,7 +162,8 @@ following are specific to `buildPythonPackage`:
|
|||||||
* `dontWrapPythonPrograms ? false`: Skip wrapping of Python programs.
|
* `dontWrapPythonPrograms ? false`: Skip wrapping of Python programs.
|
||||||
* `permitUserSite ? false`: Skip setting the `PYTHONNOUSERSITE` environment
|
* `permitUserSite ? false`: Skip setting the `PYTHONNOUSERSITE` environment
|
||||||
variable in wrapped programs.
|
variable in wrapped programs.
|
||||||
* `pyproject`: Whether the pyproject format should be used. When set to `true`,
|
* `pyproject`: Whether the pyproject format should be used. As all other formats
|
||||||
|
are deprecated, you are recommended to set this to `true`. When you do so,
|
||||||
`pypaBuildHook` will be used, and you can add the required build dependencies
|
`pypaBuildHook` will be used, and you can add the required build dependencies
|
||||||
from `build-system.requires` to `build-system`. Note that the pyproject
|
from `build-system.requires` to `build-system`. Note that the pyproject
|
||||||
format falls back to using `setuptools`, so you can use `pyproject = true`
|
format falls back to using `setuptools`, so you can use `pyproject = true`
|
||||||
|
|||||||
@@ -645,6 +645,7 @@ builds the `retworkx` Python package. `fetchCargoTarball` and
|
|||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "retworkx";
|
pname = "retworkx";
|
||||||
version = "0.6.0";
|
version = "0.6.0";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Qiskit";
|
owner = "Qiskit";
|
||||||
@@ -659,8 +660,6 @@ buildPythonPackage rec {
|
|||||||
hash = "sha256-heOBK8qi2nuc/Ib+I/vLzZ1fUUD/G/KTw9d7M4Hz5O0=";
|
hash = "sha256-heOBK8qi2nuc/Ib+I/vLzZ1fUUD/G/KTw9d7M4Hz5O0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
format = "pyproject";
|
|
||||||
|
|
||||||
nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ];
|
nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ];
|
||||||
|
|
||||||
# ...
|
# ...
|
||||||
|
|||||||
Reference in New Issue
Block a user