2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2021-12-06 16:07:01 +00:00
|
|
|
, stdenv
|
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
|
2021-12-06 16:07:01 +00:00
|
|
|
, casa-formats-io
|
2020-04-24 23:36:52 +00:00
|
|
|
, radio_beam
|
2021-09-18 10:52:07 +00:00
|
|
|
, six
|
|
|
|
, dask
|
2021-05-20 23:08:51 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest-astropy
|
|
|
|
, astropy-helpers
|
2022-02-10 20:34:41 +00:00
|
|
|
, setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "spectral-cube";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "0.6.0";
|
2021-01-05 17:05:55 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "1c0pp82wgl680w2vcwlrrz46sy83z1qs74w5bd691wg0512hv2jx";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedBuildInputs = [ astropy casa-formats-io radio_beam joblib six dask ];
|
2021-05-20 23:08:51 +00:00
|
|
|
checkInputs = [ pytestCheckHook aplpy pytest-astropy ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00: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"
|
|
|
|
];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|