2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2021-01-05 17:05:55 +00:00
|
|
|
, fetchPypi
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2020-06-15 15:56:04 +00:00
|
|
|
, aplpy
|
2021-01-05 17:05:55 +00:00
|
|
|
, joblib
|
2020-04-24 23:36:52 +00:00
|
|
|
, astropy
|
|
|
|
, radio_beam
|
|
|
|
, pytest
|
|
|
|
, pytest-astropy
|
|
|
|
, astropy-helpers
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "spectral-cube";
|
2021-01-05 17:05:55 +00:00
|
|
|
version = "0.5.0";
|
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "17zisr26syfb8kn89xj17lrdycm0hsmy5yp5zrn236wgd8rjriki";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ astropy-helpers ];
|
2021-01-05 17:05:55 +00:00
|
|
|
propagatedBuildInputs = [ astropy radio_beam joblib ];
|
2020-06-15 15:56:04 +00:00
|
|
|
checkInputs = [ aplpy pytest pytest-astropy ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
2021-01-05 17:05:55 +00:00
|
|
|
pytest spectral_cube
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Library for reading and analyzing astrophysical spectral data cubes";
|
|
|
|
homepage = "http://radio-astro-tools.github.io";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
maintainers = with lib.maintainers; [ smaret ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|