Change:
Project description Photutils is an Astropy package for detection and photometry of astronomical sources. Metadata homepage URL: source URL: license: 3-clause BSD platforms: unix, linux, darwin, Linux, Darwin Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
I could to built here withou errors from source, just the 1.11.0 version, it is not the latest one. My nix block:

Discussion:
<ins> { lib, asdf-coordinates-schemas, asdf-standard, asdf-transform-schemas, asdf, astropy, buildPythonPackage, fetchFromGitHub, numpy, packaging, pytest-astropy, pytestCheckHook, pythonOlder, scipy, setuptools-scm, setuptools, tomli, wheel, }: buildPythonPackage rec { pname = "asdf-astropy"; version = "0.6.1"; pyproject = true; disabled = pythonOlder "3.10"; src = fetchFromGitHub { owner = "astropy"; repo = "asdf-astropy"; rev = "refs/tags/${version}"; hash = "sha256-dOd9QdBOu7QotRiHkXJoIqaHG6U9odTlRmy22/nvvuw="; }; nativeBuildInputs = [ setuptools setuptools-scm ]; propagatedBuildInputs = [ asdf asdf-coordinates-schemas asdf-standard asdf-transform-schemas astropy numpy packaging ]; nativeCheckInputs = [ pytest-astropy pytestCheckHook scipy ]; pythonImportsCheck = [ "asdf_astropy" ]; preCheck = '' export HOME=$(mktemp -d) ''; meta = with lib; { description = "Extension library for ASDF to provide support for Astropy"; homepage = "https://github.com/astropy/asdf-astropy"; changelog = "https://github.com/astropy/asdf-astropy/blob/${version}/CHANGES.rst"; license = licenses.bsd3; maintainers = with maintainers; [ fab ]; }; } </ins>

<ins> { lib, asdf-standard, asdf, buildPythonPackage, fetchFromGitHub, pythonOlder, setuptools-scm, setuptools, }: buildPythonPackage rec { pname = "asdf-coordinates-schemas"; version = "0.3.0"; pyproject = true; disabled = pythonOlder "3.10"; src = fetchFromGitHub { owner = "asdf-format"; repo = "asdf-coordinates-schemas"; rev = "refs/tags/${version}"; hash = "sha256-LuC0m25OqQwivK/Z3OfoCtdhBV87rk16XrkJxUxG07o="; }; build-system = [ setuptools setuptools-scm ]; dependencies = [ asdf asdf-standard ]; # Circular dependency with asdf-astropy doCheck = false; pythonImportsCheck = [ "asdf_coordinates_schemas" ]; meta = with lib; { description = "ASDF schemas for coordinates"; homepage = "https://github.com/asdf-format/asdf-coordinates-schemas"; changelog = "https://github.com/asdf-format/asdf-coordinates-schemas/blob/${version}/CHANGES.rst"; license = licenses.bsd3; maintainers = with maintainers; [ fab ]; }; } </ins>

<ins> { lib, asdf-astropy, asdf-coordinates-schemas, asdf-standard, asdf-transform-schemas, asdf, buildPythonPackage, fetchFromGitHub, pytestCheckHook, pythonOlder, setuptools-scm, setuptools, }: buildPythonPackage rec { pname = "asdf-wcs-schemas"; version = "0.4.0"; pyproject = true; disabled = pythonOlder "3.10"; src = fetchFromGitHub { owner = "asdf-format"; repo = "asdf-wcs-schemas"; rev = "refs/tags/${version}"; hash = "sha256-4CxKLMYXdNkNwkfFRX3YKkS4e+Z3wQgmz8ogbC4Z1vI="; }; build-system = [ setuptools setuptools-scm ]; dependencies = [ asdf-coordinates-schemas asdf-standard asdf-transform-schemas ]; nativeCheckInputs = [ asdf asdf-astropy pytestCheckHook ]; pythonImportsCheck = [ "asdf_wcs_schemas" ]; meta = with lib; { description = "World Coordinate System (WCS) ASDF schemas"; homepage = "https://github.com/asdf-format/asdf-wcs-schemas"; changelog = "https://github.com/asdf-format/asdf-wcs-schemas/blob/${version}/CHANGES.rst"; license = licenses.bsd3; maintainers = with maintainers; [ fab ]; }; } </ins>

<ins> { lib, buildPythonPackage, cython, fetchFromGitHub, pip, pytestCheckHook, pythonOlder, setuptools-scm, setuptools, tomli, wheel, }: buildPythonPackage rec { pname = "extension-helpers"; version = "1.1.1"; pyproject = true; disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "astropy"; repo = "extension-helpers"; rev = "refs/tags/v${version}"; hash = "sha256-pYCSLb6uuQ9ZtMZOQH0DxLlfgFv3tgH+AL35IN71cNI="; }; build-system = [ setuptools setuptools-scm ]; dependencies = [ setuptools ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; nativeCheckInputs = [ pytestCheckHook pip ]; pythonImportsCheck = [ "extension_helpers" ]; pytestFlagsArray = [ "extension_helpers/tests" ]; disabledTests = [ # Test require network access "test_only_pyproject" ]; meta = with lib; { description = "Helpers to assist with building Python packages with compiled C/Cython extensions"; homepage = "https://github.com/astropy/extension-helpers"; changelog = "https://github.com/astropy/extension-helpers/blob/${version}/CHANGES.md"; license = licenses.bsd3; maintainers = with maintainers; [ fab ]; }; } </ins>

<ins> { lib, asdf-astropy, asdf-wcs-schemas, asdf, astropy, buildPythonPackage, fetchFromGitHub, numpy, pytest-astropy, pytestCheckHook, pythonOlder, scipy, setuptools-scm, setuptools, tomli, }: buildPythonPackage rec { pname = "gwcs"; version = "0.21.0"; pyproject = true; disabled = pythonOlder "3.10"; src = fetchFromGitHub { owner = "spacetelescope"; repo = "gwcs"; rev = "refs/tags/${version}"; hash = "sha256-76h2lDIaPHj7HarVcE0t5k6CA/hLCwquaz+2wMsKj+Y="; }; build-system = [ setuptools setuptools-scm ]; dependencies = [ asdf asdf-astropy asdf-wcs-schemas astropy numpy scipy ]; nativeCheckInputs = [ pytest-astropy pytestCheckHook ]; pythonImportsCheck = [ "gwcs" ]; meta = with lib; { description = "Module to manage the Generalized World Coordinate System"; homepage = "https://github.com/spacetelescope/gwcs"; changelog = "https://github.com/spacetelescope/gwcs/blob/${version}/CHANGES.rst"; license = licenses.bsd3; maintainers = with maintainers; [ fab ]; }; } </ins>

<ins> { lib, astropy, bottleneck, buildPythonPackage, cython, extension-helpers, fetchFromGitHub, gwcs, matplotlib, numpy, photutils, pythonOlder, rasterio, scikit-image, scikit-learn, scipy, setuptools-scm, setuptools, shapely, tomli, tqdm, python, wheel, }: buildPythonPackage rec { pname = "photutils"; version = "1.12.0"; pyproject = true; disabled = pythonOlder "3.10"; src = fetchFromGitHub { owner = "astropy"; repo = "photutils"; rev = "refs/tags/${version}"; hash = "sha256-k5MxpkCAvefSRoNPMAVIvNcCTU5HPicU4XSFXk13O9Q="; }; postPatch = '' substituteInPlace pyproject.toml  --replace-fail "'numpy>=2.0.0rc1'," "" ''; build-system = [ setuptools setuptools-scm wheel ]; nativeBuildInputs = [ cython extension-helpers numpy ]; dependencies = [ astropy numpy ]; passthru.optional-dependencies = { all = [ bottleneck gwcs matplotlib rasterio scikit-image scikit-learn scipy shapely tqdm ]; }; # With 1.12.0 tests have issues importing modules doCheck = false; pythonImportsCheck = [ "photutils" ]; meta = with lib; { description = "Astropy package for source detection and photometry"; homepage = "https://github.com/astropy/photutils"; changelog = "https://github.com/astropy/photutils/blob/${version}/CHANGES.rst"; license = licenses.bsd3; maintainers = with maintainers; [ fab ]; }; } </ins>

asdf = callPackage ../development/python-modules/asdf { }; <ins> asdf-astropy = callPackage ../development/python-modules/asdf-astropy { }; asdf-coordinates-schemas = callPackage ../development/python-modules/asdf-coordinates-schemas { }; </ins> asdf-standard = callPackage ../development/python-modules/asdf-standard { }; asdf-transform-schemas = callPackage ../development/python-modules/asdf-transform-schemas { }; <ins> asdf-wcs-schemas = callPackage ../development/python-modules/asdf-wcs-schemas { }; </ins> ase = callPackage ../development/python-modules/ase { }; asf-search = callPackage ../development/python-modules/asf-search { };

exitcode = callPackage ../development/python-modules/exitcode { }; <ins> extension-helpers = callPackage ../development/python-modules/extension-helpers { }; </ins> extract-msg = callPackage ../development/python-modules/extract-msg { }; extractcode = callPackage ../development/python-modules/extractcode { };

gviz-api = callPackage ../development/python-modules/gviz-api { }; <ins> gwcs = callPackage ../development/python-modules/gwcs { }; </ins> gym = callPackage ../development/python-modules/gym { }; gym-notices = callPackage ../development/python-modules/gym-notices { };

phonenumbers = callPackage ../development/python-modules/phonenumbers { }; <ins> photutils = callPackage ../development/python-modules/photutils { }; </ins> pkgutil-resolve-name = callPackage ../development/python-modules/pkgutil-resolve-name { }; pkg-about = callPackage ../development/python-modules/pkg-about { };