2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, astropy
|
2022-06-16 17:23:12 +00:00
|
|
|
, astropy-extension-helpers
|
2020-04-24 23:36:52 +00:00
|
|
|
, astropy-healpix
|
2022-06-16 17:23:12 +00:00
|
|
|
, buildPythonPackage
|
2023-11-16 04:20:00 +00:00
|
|
|
, cloudpickle
|
2022-06-16 17:23:12 +00:00
|
|
|
, cython
|
2023-11-16 04:20:00 +00:00
|
|
|
, dask
|
2022-06-16 17:23:12 +00:00
|
|
|
, fetchPypi
|
2023-11-16 04:20:00 +00:00
|
|
|
, fsspec
|
2022-06-16 17:23:12 +00:00
|
|
|
, numpy
|
2023-10-09 19:29:22 +00:00
|
|
|
, oldest-supported-numpy
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest-astropy
|
2022-06-16 17:23:12 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, scipy
|
2021-06-04 09:07:49 +00:00
|
|
|
, setuptools-scm
|
2023-11-16 04:20:00 +00:00
|
|
|
, zarr
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "reproject";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.12.0";
|
2023-03-04 12:14:45 +00:00
|
|
|
format = "pyproject";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-jb4efKT5jMY0ECV+ab5rpUHEk+tT4T2MioCRxs92TbI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace "cython==" "cython>="
|
|
|
|
'';
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
astropy-extension-helpers
|
|
|
|
cython
|
2023-10-09 19:29:22 +00:00
|
|
|
numpy
|
|
|
|
oldest-supported-numpy
|
2022-06-16 17:23:12 +00:00
|
|
|
setuptools-scm
|
2021-01-05 17:05:55 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
astropy
|
|
|
|
astropy-healpix
|
2023-11-16 04:20:00 +00:00
|
|
|
cloudpickle
|
|
|
|
dask
|
|
|
|
fsspec
|
2022-06-16 17:23:12 +00:00
|
|
|
numpy
|
|
|
|
scipy
|
2023-11-16 04:20:00 +00:00
|
|
|
zarr
|
|
|
|
] ++ dask.optional-dependencies.array;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-06-16 17:23:12 +00:00
|
|
|
pytest-astropy
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"build/lib*"
|
|
|
|
# Avoid failure due to user warning: Distutils was imported before Setuptools
|
|
|
|
"-p no:warnings"
|
2023-03-04 12:14:45 +00:00
|
|
|
# Uses network
|
|
|
|
"--ignore build/lib*/reproject/interpolation/"
|
2022-10-21 18:38:19 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"reproject"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Reproject astronomical images";
|
2023-11-16 04:20:00 +00:00
|
|
|
downloadPage = "https://github.com/astropy/reproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://reproject.readthedocs.io";
|
|
|
|
license = licenses.bsd3;
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ smaret ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|