2018-05-28 11:50:10 +01:00
|
|
|
{ lib
|
2020-12-28 19:54:14 +00:00
|
|
|
, fetchPypi
|
2018-05-28 11:50:10 +01:00
|
|
|
, buildPythonPackage
|
2020-06-20 23:33:37 +01:00
|
|
|
, aplpy
|
2020-12-28 19:54:14 +00:00
|
|
|
, joblib
|
2018-05-28 11:50:10 +01:00
|
|
|
, astropy
|
|
|
|
, radio_beam
|
2019-07-23 11:15:59 +01:00
|
|
|
, pytest
|
|
|
|
, pytest-astropy
|
|
|
|
, astropy-helpers
|
|
|
|
}:
|
2018-05-28 11:50:10 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "spectral-cube";
|
2020-12-28 19:54:14 +00:00
|
|
|
version = "0.5.0";
|
|
|
|
format = "pyproject";
|
2019-12-02 10:07:26 +00:00
|
|
|
|
2020-12-28 19:54:14 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "17zisr26syfb8kn89xj17lrdycm0hsmy5yp5zrn236wgd8rjriki";
|
2018-05-28 11:50:10 +01:00
|
|
|
};
|
|
|
|
|
2019-07-23 11:15:59 +01:00
|
|
|
nativeBuildInputs = [ astropy-helpers ];
|
2020-12-28 19:54:14 +00:00
|
|
|
propagatedBuildInputs = [ astropy radio_beam joblib ];
|
2020-06-20 23:33:37 +01:00
|
|
|
checkInputs = [ aplpy pytest pytest-astropy ];
|
2019-07-23 11:15:59 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
2020-12-28 19:54:14 +00:00
|
|
|
pytest spectral_cube
|
2019-07-23 11:15:59 +01:00
|
|
|
'';
|
2018-05-28 11:50:10 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Library for reading and analyzing astrophysical spectral data cubes";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://radio-astro-tools.github.io";
|
2018-05-28 11:50:10 +01:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
maintainers = with lib.maintainers; [ smaret ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|