python3Packages.asdf-astropy: reduce test dependencies (#462335)

This commit is contained in:
dotlambda
2025-11-16 20:12:15 +00:00
committed by GitHub

View File

@@ -9,12 +9,13 @@
fetchFromGitHub,
numpy,
packaging,
pytest-astropy,
pytest-astropy-header,
pytest-doctestplus,
pytestCheckHook,
pythonOlder,
scipy,
setuptools-scm,
setuptools,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
@@ -22,8 +23,6 @@ buildPythonPackage rec {
version = "0.8.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "astropy";
repo = "asdf-astropy";
@@ -47,17 +46,15 @@ buildPythonPackage rec {
];
nativeCheckInputs = [
pytest-astropy
pytest-astropy-header
pytest-doctestplus
pytestCheckHook
scipy
writableTmpDirAsHomeHook
];
pythonImportsCheck = [ "asdf_astropy" ];
preCheck = ''
export HOME=$(mktemp -d)
'';
meta = with lib; {
description = "Extension library for ASDF to provide support for Astropy";
homepage = "https://github.com/astropy/asdf-astropy";