about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/spectral-cube/default.nix
blob: 5a022f467087205b04a8d35f9b0a6a91b28f898e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ lib
, fetchPypi
, fetchpatch
, buildPythonPackage
, aplpy
, joblib
, astropy
, radio_beam
, six
, dask
, pytestCheckHook
, pytest-astropy
, astropy-helpers
}:

buildPythonPackage rec {
  pname = "spectral-cube";
  version = "0.5.0";
  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    sha256 = "17zisr26syfb8kn89xj17lrdycm0hsmy5yp5zrn236wgd8rjriki";
  };

  patches = [
    # Fix compatibility with radio_beam >= 0.3.3. Will be included
    # in the next release of spectral cube > 0.5.0
    (fetchpatch {
      url = "https://github.com/radio-astro-tools/spectral-cube/commit/bbe4295ebef7dfa6fe4474275a29acd6cb0cb544.patch";
    sha256 = "1qddfm3364kc34yf6wd9nd6rxh4qc2v5pqilvz9adwb4a50z28bf";
    })
  ];

  nativeBuildInputs = [ astropy-helpers ];
  propagatedBuildInputs = [ astropy radio_beam joblib six dask ];
  checkInputs = [ pytestCheckHook aplpy pytest-astropy ];

  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 ];
  };
}