mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-13 20:07:49 +00:00
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:
commit
38506b33d6
@ -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;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user