about summary refs log tree commit diff
path: root/pkgs/development/python-modules/casa-formats-io/default.nix
blob: 2537c9e8e5f6cf47918f1c721222fc10281f54f4 (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
{ lib
, fetchPypi
, buildPythonPackage
, astropy
, dask
, numpy
, oldest-supported-numpy
, setuptools-scm
, wheel
}:

buildPythonPackage rec {
  pname = "casa-formats-io";
  version = "0.3.0";
  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-FpQj0XeZ7vvOzUM/+5qG6FRwNXl3gzoUBItYdQ1M4m4=";
  };

  nativeBuildInputs = [
    oldest-supported-numpy
    setuptools-scm
    wheel
  ];

  propagatedBuildInputs = [ astropy dask numpy ];

  # Tests require a large (800 Mb) dataset
  doCheck = false;

  pythonImportsCheck = [ "casa_formats_io" ];

  meta = {
    description = "Dask-based reader for CASA data";
    homepage = "https://casa-formats-io.readthedocs.io/";
    license = lib.licenses.lgpl2Only;
    maintainers = with lib.maintainers; [ smaret ];
  };
}