1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-21 17:01:10 +03:00
nixpkgs/pkgs/development/python-modules/spectral-cube/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.1 KiB
Nix
Raw Normal View History

2018-05-28 12:50:10 +02:00
{ lib
, stdenv
, fetchPypi
2018-05-28 12:50:10 +02:00
, buildPythonPackage
, aplpy
, joblib
2018-05-28 12:50:10 +02:00
, astropy
, casa-formats-io
2018-05-28 12:50:10 +02:00
, radio_beam
, six
, dask
, pytestCheckHook
, pytest-astropy
, astropy-helpers
, setuptools-scm
}:
2018-05-28 12:50:10 +02:00
buildPythonPackage rec {
pname = "spectral-cube";
version = "0.6.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "1c0pp82wgl680w2vcwlrrz46sy83z1qs74w5bd691wg0512hv2jx";
2018-05-28 12:50:10 +02:00
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [ astropy casa-formats-io radio_beam joblib six dask ];
checkInputs = [ pytestCheckHook aplpy pytest-astropy ];
2018-05-28 12:50:10 +02:00
# On x86_darwin, this test fails with "Fatal Python error: Aborted"
# when sandbox = true.
disabledTestPaths = lib.optionals stdenv.isDarwin [
"spectral_cube/tests/test_visualization.py"
];
2018-05-28 12:50:10 +02:00
meta = {
description = "Library for reading and analyzing astrophysical spectral data cubes";
homepage = "http://radio-astro-tools.github.io";
2018-05-28 12:50:10 +02:00
license = lib.licenses.bsd3;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ smaret ];
};
}