2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, astropy
|
|
|
|
, dask
|
|
|
|
, numpy
|
2022-02-10 20:34:41 +00:00
|
|
|
, setuptools-scm
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "casa-formats-io";
|
|
|
|
version = "0.1";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "16rypj65wdfxxrilxfhbk563lxv86if4vvs9zfq3f8bkzdr8xl9s";
|
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
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";
|
2022-02-10 20:34:41 +00:00
|
|
|
homepage = "https://casa-formats-io.readthedocs.io/";
|
2021-12-06 16:07:01 +00:00
|
|
|
license = lib.licenses.lgpl2Only;
|
|
|
|
maintainers = with lib.maintainers; [ smaret ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|