diff --git a/pkgs/development/python-modules/asdf-astropy/default.nix b/pkgs/development/python-modules/asdf-astropy/default.nix index 630ff8e349d4..92c8ce75b908 100644 --- a/pkgs/development/python-modules/asdf-astropy/default.nix +++ b/pkgs/development/python-modules/asdf-astropy/default.nix @@ -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";