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

python3Packages.spectral-cube: upgrade to the latest upstream and fix tests
This commit is contained in:
OTABI Tomoya 2023-11-05 11:29:09 +09:00 committed by GitHub
commit 38506b33d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
};
}