python3Packages.spectral-cube: add patch for radio_beam >= 0.3.3
This commit is contained in:
parent
305343359b
commit
96c4ebd542
|
@ -1,11 +1,12 @@
|
||||||
{ lib
|
{ lib
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, fetchpatch
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, aplpy
|
, aplpy
|
||||||
, joblib
|
, joblib
|
||||||
, astropy
|
, astropy
|
||||||
, radio_beam
|
, radio_beam
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
, pytest-astropy
|
, pytest-astropy
|
||||||
, astropy-helpers
|
, astropy-helpers
|
||||||
}:
|
}:
|
||||||
|
@ -20,13 +21,18 @@ buildPythonPackage rec {
|
||||||
sha256 = "17zisr26syfb8kn89xj17lrdycm0hsmy5yp5zrn236wgd8rjriki";
|
sha256 = "17zisr26syfb8kn89xj17lrdycm0hsmy5yp5zrn236wgd8rjriki";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Fix compatibility with radio_beam >= 0.3.3. Will be included
|
||||||
|
# in the next release of spectral cube > 0.5.0
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/radio-astro-tools/spectral-cube/commit/bbe4295ebef7dfa6fe4474275a29acd6cb0cb544.patch";
|
||||||
|
sha256 = "1qddfm3364kc34yf6wd9nd6rxh4qc2v5pqilvz9adwb4a50z28bf";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ astropy-helpers ];
|
nativeBuildInputs = [ astropy-helpers ];
|
||||||
propagatedBuildInputs = [ astropy radio_beam joblib ];
|
propagatedBuildInputs = [ astropy radio_beam joblib ];
|
||||||
checkInputs = [ aplpy pytest pytest-astropy ];
|
checkInputs = [ pytestCheckHook aplpy pytest-astropy ];
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
pytest spectral_cube
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Library for reading and analyzing astrophysical spectral data cubes";
|
description = "Library for reading and analyzing astrophysical spectral data cubes";
|
||||||
|
|
Loading…
Reference in New Issue