depot/third_party/nixpkgs/pkgs/development/python-modules/casa-formats-io/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

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 ];
};
}