New package: py-spectral (#28481)

* simple build of spectral

* fixed trailing whitespace for style

* [py-spectral] updated copyright

* [py-spectral] runtime imports py-numpy

Co-authored-by: Sid Pendelberry <sid@rit.edu>
This commit is contained in:
Jen Herting 2022-01-27 16:57:14 -05:00 committed by GitHub
parent bae2a2660e
commit a2170c9e04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,22 @@
# Copyright 2013-2022 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 import *
class PySpectral(PythonPackage):
"""Spectral Python (SPy) is a pure Python module for processing
hyperspectral image data (imaging spectroscopy data). It has functions for
reading, displaying, manipulating, and classifying hyperspectral imagery.
SPy is Free, Open Source Software (FOSS) distributed under the MIT
License."""
homepage = "http://www.spectralpython.net/"
pypi = "spectral/spectral-0.22.4.tar.gz"
version('0.22.4', sha256='b208ffd1042e32fd2276a35e098e3df26a5f6ff1310b829e97d222c66645a9af')
depends_on('py-setuptools', type='build')
depends_on('py-numpy', type=('build', 'run'))