summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-photutils/package.py
blob: c61f8804f1ee28b8fb485ad86135d32e73f49903 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class PyPhotutils(PythonPackage):
    """
    Photutils is an Astropy package for detection and photometry of astronomical
    sources.
    """

    homepage = "https://github.com/astropy/photutils"
    pypi = "photutils/photutils-1.5.0.tar.gz"

    license("BSD-3-Clause")

    version("1.5.0", sha256="014f7aa5a571401094d5cf9ffb57803b48869233feb80476ce377ecb91113689")

    maintainers("meyersbs")

    # From setup.cfg
    depends_on("python@3.8:", type=("build", "run"))
    depends_on("py-numpy@1.18:", type=("build", "run"))
    depends_on("py-astropy@5.0:", type=("build", "run"))
    # From pyproject.toml
    depends_on("py-setuptools", type="build")
    depends_on("py-setuptools-scm", type="build")
    depends_on("py-cython@0.29.22:", type="build")
    depends_on("py-extension-helpers", type="build")