Unverified Commit af552ca3 authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

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

parents f6e67a84 5073d5c3
Loading
Loading
Loading
Loading
+6 −9
Original line number Diff line number Diff line
@@ -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";