Merge pull request #191956 from impl/python-unittest-hook-doc

doc/python: fix attr name for unittestCheckHook flags
This commit is contained in:
Martin Weinelt 2023-01-28 21:24:19 +00:00 committed by GitHub
commit 6bc23142b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -744,17 +744,17 @@ work in any of the formats supported by `buildPythonPackage` currently,
with the exception of `other` (see `format` in with the exception of `other` (see `format` in
[`buildPythonPackage` parameters](#buildpythonpackage-parameters) for more details). [`buildPythonPackage` parameters](#buildpythonpackage-parameters) for more details).
### Using unittestCheckHook {#using-unittestcheckhook} #### Using unittestCheckHook {#using-unittestcheckhook}
`unittestCheckHook` is a hook which will substitute the setuptools `test` command for a `checkPhase` which runs `python -m unittest discover`: `unittestCheckHook` is a hook which will substitute the setuptools `test` command for a `checkPhase` which runs `python -m unittest discover`:
``` ```
nativeCheckInputs = [ unittestCheckHook ]; nativeCheckInputs = [ unittestCheckHook ];
unittestFlags = [ "-s" "tests" "-v" ]; unittestFlagsArray = [ "-s" "tests" "-v" ];
``` ```
##### Using sphinxHook {#using-sphinxhook} #### Using sphinxHook {#using-sphinxhook}
The `sphinxHook` is a helpful tool to build documentation and manpages The `sphinxHook` is a helpful tool to build documentation and manpages
using the popular Sphinx documentation generator. using the popular Sphinx documentation generator.