nixpkgs/pkgs/development/python-modules/spectral-cube/default.nix

40 lines
828 B
Nix
Raw Normal View History

2018-05-28 11:50:10 +01:00
{ lib
, fetchPypi
2018-05-28 11:50:10 +01:00
, buildPythonPackage
, aplpy
, joblib
2018-05-28 11:50:10 +01:00
, astropy
, radio_beam
, pytest
, pytest-astropy
, astropy-helpers
}:
2018-05-28 11:50:10 +01:00
buildPythonPackage rec {
pname = "spectral-cube";
version = "0.5.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "17zisr26syfb8kn89xj17lrdycm0hsmy5yp5zrn236wgd8rjriki";
2018-05-28 11:50:10 +01:00
};
nativeBuildInputs = [ astropy-helpers ];
propagatedBuildInputs = [ astropy radio_beam joblib ];
checkInputs = [ aplpy pytest pytest-astropy ];
checkPhase = ''
pytest spectral_cube
'';
2018-05-28 11:50:10 +01:00
meta = {
description = "Library for reading and analyzing astrophysical spectral data cubes";
homepage = "http://radio-astro-tools.github.io";
2018-05-28 11:50:10 +01:00
license = lib.licenses.bsd3;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ smaret ];
};
}