Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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, setuptools-scm 16}: 17 18buildPythonPackage rec { 19 pname = "spectral-cube"; 20 version = "0.6.0"; 21 format = "pyproject"; 22 23 src = fetchPypi { 24 inherit pname version; 25 sha256 = "1c0pp82wgl680w2vcwlrrz46sy83z1qs74w5bd691wg0512hv2jx"; 26 }; 27 28 SETUPTOOLS_SCM_PRETEND_VERSION = version; 29 30 nativeBuildInputs = [ 31 setuptools-scm 32 ]; 33 34 propagatedBuildInputs = [ astropy casa-formats-io radio_beam joblib six dask ]; 35 nativeCheckInputs = [ pytestCheckHook aplpy pytest-astropy ]; 36 37 # On x86_darwin, this test fails with "Fatal Python error: Aborted" 38 # when sandbox = true. 39 disabledTestPaths = lib.optionals stdenv.isDarwin [ 40 "spectral_cube/tests/test_visualization.py" 41 ]; 42 43 meta = { 44 description = "Library for reading and analyzing astrophysical spectral data cubes"; 45 homepage = "http://radio-astro-tools.github.io"; 46 license = lib.licenses.bsd3; 47 platforms = lib.platforms.all; 48 maintainers = with lib.maintainers; [ smaret ]; 49 broken = true; 50 }; 51}