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
|
2024-04-21 15:54:59 +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";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.13.0";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-lL6MkKVSWmV6KPkG/9fjc2c2dFQ14i9fiJAr3VFfcuI=";
|
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
|
2024-04-21 15:54:59 +00:00
|
|
|
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";
|
2024-01-25 14:12:00 +00:00
|
|
|
changelog = "https://github.com/astropy/reproject/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ smaret ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|