python3Packages.astropy: reduce test dependencies

In particular I don't want it to use pytest-cov. Since pytest-astropy
depends on that, we remove pytest-astropy and pick all dependencies of
pytest-astropy that are actually required.
This commit is contained in:
Robert Schütz
2025-11-15 10:48:55 -08:00
parent 2cdf5e15b4
commit 8bc5341ba6

View File

@@ -43,10 +43,12 @@
uncompresspy, uncompresspy,
# testing # testing
hypothesis,
pytestCheckHook, pytestCheckHook,
pytest-xdist, pytest-xdist,
pytest-astropy-header, pytest-astropy-header,
pytest-astropy, pytest-doctestplus,
pytest-remotedata,
threadpoolctl, threadpoolctl,
}: }:
@@ -123,11 +125,16 @@ buildPythonPackage rec {
}); });
nativeCheckInputs = [ nativeCheckInputs = [
hypothesis
pytestCheckHook pytestCheckHook
pytest-xdist pytest-xdist
pytest-astropy-header pytest-astropy-header
pytest-astropy pytest-doctestplus
pytest-remotedata
threadpoolctl threadpoolctl
# FIXME remove in 7.2.0
# see https://github.com/astropy/astropy/pull/18882
uncompresspy
] ]
++ optional-dependencies.recommended; ++ optional-dependencies.recommended;