1{ lib
2, stdenv
3, fetchPypi
4, buildPythonPackage
5, aplpy
6, joblib
7, astropy
8, casa-formats-io
9, radio_beam
10, six
11, dask
12, pytestCheckHook
13, pytest-astropy
14, astropy-helpers
15}:
16
17buildPythonPackage rec {
18 pname = "spectral-cube";
19 version = "0.6.0";
20 format = "pyproject";
21
22 src = fetchPypi {
23 inherit pname version;
24 sha256 = "1c0pp82wgl680w2vcwlrrz46sy83z1qs74w5bd691wg0512hv2jx";
25 };
26
27 propagatedBuildInputs = [ astropy casa-formats-io radio_beam joblib six dask ];
28 checkInputs = [ pytestCheckHook aplpy pytest-astropy ];
29
30 # On x86_darwin, this test fails with "Fatal Python error: Aborted"
31 # when sandbox = true.
32 disabledTestPaths = lib.optionals stdenv.isDarwin [
33 "spectral_cube/tests/test_visualization.py"
34 ];
35
36 meta = {
37 description = "Library for reading and analyzing astrophysical spectral data cubes";
38 homepage = "http://radio-astro-tools.github.io";
39 license = lib.licenses.bsd3;
40 platforms = lib.platforms.all;
41 maintainers = with lib.maintainers; [ smaret ];
42 };
43}
44