depot/third_party/nixpkgs/pkgs/development/python-modules/casa-formats-io/default.nix
Default email c7f94ff3ce Project import generated by Copybara.
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
2023-08-22 22:05:09 +02: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.1";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-8iZ+wcSfh5ACTb3/iQAf2qQpwZ6wExWwcdJoLmCEjB0=";
};
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 ];
};
}