2018-05-28 12:50:10 +02:00
|
|
|
{ lib
|
2021-11-13 15:56:28 +01:00
|
|
|
, stdenv
|
2020-12-28 14:54:14 -05:00
|
|
|
, fetchPypi
|
2018-05-28 12:50:10 +02:00
|
|
|
, buildPythonPackage
|
2020-06-20 15:33:37 -07:00
|
|
|
, aplpy
|
2020-12-28 14:54:14 -05:00
|
|
|
, joblib
|
2018-05-28 12:50:10 +02:00
|
|
|
, astropy
|
2021-11-13 15:56:28 +01:00
|
|
|
, casa-formats-io
|
2018-05-28 12:50:10 +02:00
|
|
|
, radio_beam
|
2021-08-31 15:48:27 +02:00
|
|
|
, six
|
|
|
|
, dask
|
2021-04-27 13:30:46 -04:00
|
|
|
, pytestCheckHook
|
2019-07-23 12:15:59 +02:00
|
|
|
, pytest-astropy
|
|
|
|
, astropy-helpers
|
2022-02-07 12:06:00 +01:00
|
|
|
, setuptools-scm
|
2019-07-23 12:15:59 +02:00
|
|
|
}:
|
2018-05-28 12:50:10 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "spectral-cube";
|
2021-11-13 15:56:28 +01:00
|
|
|
version = "0.6.0";
|
2020-12-28 14:54:14 -05:00
|
|
|
format = "pyproject";
|
2019-12-02 11:07:26 +01:00
|
|
|
|
2020-12-28 14:54:14 -05:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-11-13 15:56:28 +01:00
|
|
|
sha256 = "1c0pp82wgl680w2vcwlrrz46sy83z1qs74w5bd691wg0512hv2jx";
|
2018-05-28 12:50:10 +02:00
|
|
|
};
|
|
|
|
|
2022-02-07 12:06:00 +01:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2021-11-13 15:56:28 +01:00
|
|
|
propagatedBuildInputs = [ astropy casa-formats-io radio_beam joblib six dask ];
|
2021-04-27 13:30:46 -04:00
|
|
|
checkInputs = [ pytestCheckHook aplpy pytest-astropy ];
|
2018-05-28 12:50:10 +02:00
|
|
|
|
2021-11-13 15:56:28 +01:00
|
|
|
# On x86_darwin, this test fails with "Fatal Python error: Aborted"
|
|
|
|
# when sandbox = true.
|
|
|
|
disabledTestPaths = lib.optionals stdenv.isDarwin [
|
|
|
|
"spectral_cube/tests/test_visualization.py"
|
|
|
|
];
|
|
|
|
|
2018-05-28 12:50:10 +02:00
|
|
|
meta = {
|
|
|
|
description = "Library for reading and analyzing astrophysical spectral data cubes";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "http://radio-astro-tools.github.io";
|
2018-05-28 12:50:10 +02:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
maintainers = with lib.maintainers; [ smaret ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|