From a2170c9e043b03cc3ff3a6f1ba9a25e0fd756f8a Mon Sep 17 00:00:00 2001 From: Jen Herting Date: Thu, 27 Jan 2022 16:57:14 -0500 Subject: 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 --- .../repos/builtin/packages/py-spectral/package.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-spectral/package.py diff --git a/var/spack/repos/builtin/packages/py-spectral/package.py b/var/spack/repos/builtin/packages/py-spectral/package.py new file mode 100644 index 0000000000..0722843b70 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-spectral/package.py @@ -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')) -- cgit v1.2.3-60-g2f50