2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
41 lines
803 B
Nix
41 lines
803 B
Nix
{ lib
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
, astropy
|
|
, dask
|
|
, numpy
|
|
, oldest-supported-numpy
|
|
, setuptools-scm
|
|
, wheel
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "casa-formats-io";
|
|
version = "0.2.2";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-EOX+tal9nrON2K7mHVYSTTxja6mu2k3Bag8bhL3JHJs=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|