Unverified Commit 38506b33 authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

Merge pull request #265474 from smaret/spectral-cube-update

python3Packages.spectral-cube: upgrade to the latest upstream and fix tests
parents 1c13ea41 ab7601ac
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@
, stdenv
, aplpy
, astropy
, astropy-helpers
, buildPythonPackage
, casa-formats-io
, dask
@@ -17,14 +16,14 @@

buildPythonPackage rec {
  pname = "spectral-cube";
  version = "0.6.2";
  version = "0.6.3";
  format = "pyproject";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-0Fr9PvUShi04z8SUsZE7zHuXZWg4rxt6gwSBb6lr2Pc=";
    hash = "sha256-7wfvsravSkAGkTtuPE01wPW7wEHKVWT8kYQn93Q2B4M=";
  };

  SETUPTOOLS_SCM_PRETEND_VERSION = version;
@@ -47,6 +46,11 @@ buildPythonPackage rec {
    pytestCheckHook
  ];

  # Tests must be run in the build directory.
  preCheck = ''
    cd build/lib
  '';

  # On x86_darwin, this test fails with "Fatal Python error: Aborted"
  # when sandbox = true.
  disabledTestPaths = lib.optionals stdenv.isDarwin [
@@ -63,7 +67,5 @@ buildPythonPackage rec {
    changelog = "https://github.com/radio-astro-tools/spectral-cube/releases/tag/v${version}";
    license = licenses.bsd3;
    maintainers = with maintainers; [ smaret ];
    # Tests fail to start, according to Hydra
    broken = true;
  };
}