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