2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
astropy,
|
|
|
|
buildPythonPackage,
|
|
|
|
dask,
|
|
|
|
fetchPypi,
|
|
|
|
numpy,
|
|
|
|
oldest-supported-numpy,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools-scm,
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "casa-formats-io";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.3.0";
|
|
|
|
prproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-05-15 15:35:15 +00:00
|
|
|
pname = "casa_formats_io";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-FpQj0XeZ7vvOzUM/+5qG6FRwNXl3gzoUBItYdQ1M4m4=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ setuptools-scm ];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [ oldest-supported-numpy ];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
astropy
|
|
|
|
dask
|
|
|
|
numpy
|
|
|
|
];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
# Tests require a large (800 Mb) dataset
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "casa_formats_io" ];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
meta = with lib; {
|
2021-12-06 16:07:01 +00:00
|
|
|
description = "Dask-based reader for CASA data";
|
2022-02-10 20:34:41 +00:00
|
|
|
homepage = "https://casa-formats-io.readthedocs.io/";
|
2024-05-15 15:35:15 +00:00
|
|
|
changelog = "https://github.com/radio-astro-tools/casa-formats-io/blob/v${version}/CHANGES.rst";
|
|
|
|
license = licenses.lgpl2Only;
|
|
|
|
maintainers = with maintainers; [ smaret ];
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
}
|