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";
|
2022-10-06 18:32:54 +00:00
|
|
|
version = "0.2.1";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-8iZ+wcSfh5ACTb3/iQAf2qQpwZ6wExWwcdJoLmCEjB0=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|