Commit 4bce6e28 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python311Packages.spectral-cube: unbreak

parent f67702e6
Loading
Loading
Loading
Loading
+26 −10
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchPypi
, buildPythonPackage
, aplpy
, joblib
, astropy
, astropy-helpers
, buildPythonPackage
, casa-formats-io
, radio_beam
, six
, dask
, pytestCheckHook
, fetchPypi
, joblib
, pytest-astropy
, astropy-helpers
, pytestCheckHook
, pythonOlder
, radio_beam
, setuptools-scm
}:

@@ -20,6 +20,8 @@ buildPythonPackage rec {
  version = "0.6.2";
  format = "pyproject";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-0Fr9PvUShi04z8SUsZE7zHuXZWg4rxt6gwSBb6lr2Pc=";
@@ -31,8 +33,19 @@ buildPythonPackage rec {
    setuptools-scm
  ];

  propagatedBuildInputs = [ astropy casa-formats-io radio_beam joblib six dask ];
  nativeCheckInputs = [ pytestCheckHook aplpy pytest-astropy ];
  propagatedBuildInputs = [
    astropy
    casa-formats-io
    radio_beam
    joblib
    dask
  ];

  nativeCheckInputs = [
    aplpy
    pytest-astropy
    pytestCheckHook
  ];

  # On x86_darwin, this test fails with "Fatal Python error: Aborted"
  # when sandbox = true.
@@ -40,12 +53,15 @@ buildPythonPackage rec {
    "spectral_cube/tests/test_visualization.py"
  ];

  pythonImportsCheck = [
    "spectral_cube"
  ];

  meta = with lib; {
    description = "Library for reading and analyzing astrophysical spectral data cubes";
    homepage = "https://spectral-cube.readthedocs.io";
    changelog = "https://github.com/radio-astro-tools/spectral-cube/releases/tag/v${version}";
    license = licenses.bsd3;
    maintainers = with maintainers; [ smaret ];
    broken = true;
  };
}