17 buildPythonPackage rec {
18 pname = "spectral-cube";
22 disabled = pythonOlder "3.7";
25 inherit pname version;
26 hash = "sha256-7wfvsravSkAGkTtuPE01wPW7wEHKVWT8kYQn93Q2B4M=";
29 SETUPTOOLS_SCM_PRETEND_VERSION = version;
35 propagatedBuildInputs = [
49 # Tests must be run in the build directory.
54 # On x86_darwin, this test fails with "Fatal Python error: Aborted"
55 # when sandbox = true.
56 disabledTestPaths = lib.optionals stdenv.isDarwin [
57 "spectral_cube/tests/test_visualization.py"
60 pythonImportsCheck = [
65 description = "Library for reading and analyzing astrophysical spectral data cubes";
66 homepage = "https://spectral-cube.readthedocs.io";
67 changelog = "https://github.com/radio-astro-tools/spectral-cube/releases/tag/v${version}";
68 license = licenses.bsd3;
69 maintainers = with maintainers; [ smaret ];