Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 45 lines 1.2 kB view raw
1{ lib 2, fetchPypi 3, fetchpatch 4, buildPythonPackage 5, aplpy 6, joblib 7, astropy 8, radio_beam 9, pytestCheckHook 10, pytest-astropy 11, astropy-helpers 12}: 13 14buildPythonPackage rec { 15 pname = "spectral-cube"; 16 version = "0.5.0"; 17 format = "pyproject"; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "17zisr26syfb8kn89xj17lrdycm0hsmy5yp5zrn236wgd8rjriki"; 22 }; 23 24 patches = [ 25 # Fix compatibility with radio_beam >= 0.3.3. Will be included 26 # in the next release of spectral cube > 0.5.0 27 (fetchpatch { 28 url = "https://github.com/radio-astro-tools/spectral-cube/commit/bbe4295ebef7dfa6fe4474275a29acd6cb0cb544.patch"; 29 sha256 = "1qddfm3364kc34yf6wd9nd6rxh4qc2v5pqilvz9adwb4a50z28bf"; 30 }) 31 ]; 32 33 nativeBuildInputs = [ astropy-helpers ]; 34 propagatedBuildInputs = [ astropy radio_beam joblib ]; 35 checkInputs = [ pytestCheckHook aplpy pytest-astropy ]; 36 37 meta = { 38 description = "Library for reading and analyzing astrophysical spectral data cubes"; 39 homepage = "http://radio-astro-tools.github.io"; 40 license = lib.licenses.bsd3; 41 platforms = lib.platforms.all; 42 maintainers = with lib.maintainers; [ smaret ]; 43 }; 44} 45