2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, astropy
|
|
|
|
, dask
|
|
|
|
, numpy
|
2023-08-22 20:05:09 +00:00
|
|
|
, oldest-supported-numpy
|
2022-02-10 20:34:41 +00:00
|
|
|
, setuptools-scm
|
2023-08-22 20:05:09 +00:00
|
|
|
, wheel
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "casa-formats-io";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.2.2";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-EOX+tal9nrON2K7mHVYSTTxja6mu2k3Bag8bhL3JHJs=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
oldest-supported-numpy
|
|
|
|
setuptools-scm
|
|
|
|
wheel
|
|
|
|
];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|