depot/third_party/nixpkgs/pkgs/development/python-modules/spectral-cube/default.nix
Default email ffc78d3539 Project import generated by Copybara.
GitOrigin-RevId: d9dba88d08a9cdf483c3d45f0d7220cf97a4ce64
2021-01-05 19:05:55 +02:00

39 lines
828 B
Nix

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