python313Packages.reproject: refactor

Tom Hunze 7dab1890 6974a2da

Changed files
+4 -12
pkgs
development
python-modules
reproject
+4 -12
pkgs/development/python-modules/reproject/default.nix
···
pytest-astropy,
pytest-xdist,
pytestCheckHook,
-
pythonOlder,
scipy,
setuptools,
setuptools-scm,
···
version = "0.15.0";
pyproject = true;
-
disabled = pythonOlder "3.10";
-
src = fetchFromGitHub {
owner = "astropy";
repo = "reproject";
tag = "v${version}";
hash = "sha256-gv5LOxXTNdHSx4Q4ydi/QBHhc7/E/DXJD7WuPBAH0dE=";
};
-
-
postPatch = ''
-
substituteInPlace pyproject.toml \
-
--replace "cython==" "cython>="
-
'';
build-system = [
setuptools
···
pythonImportsCheck = [ "reproject" ];
-
meta = with lib; {
+
meta = {
description = "Reproject astronomical images";
downloadPage = "https://github.com/astropy/reproject";
homepage = "https://reproject.readthedocs.io";
-
changelog = "https://github.com/astropy/reproject/releases/tag/v${version}";
-
license = licenses.bsd3;
-
maintainers = with maintainers; [ smaret ];
+
changelog = "https://github.com/astropy/reproject/releases/tag/${src.tag}";
+
license = lib.licenses.bsd3;
+
maintainers = with lib.maintainers; [ smaret ];
};
}