spack/var/spack/repos/builtin/packages/py-tuiview/package.py
2022-07-31 13:29:20 -07:00

26 lines
1.0 KiB
Python

# 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.package import *
class PyTuiview(PythonPackage):
"""TuiView is a lightweight raster GIS with powerful raster attribute
table manipulation abilities.
"""
homepage = "https://github.com/ubarsc/tuiview"
url = "https://github.com/ubarsc/tuiview/releases/download/tuiview-1.2.6/tuiview-1.2.6.tar.gz"
version("1.2.6", sha256="61b136fa31c949d7a7a4dbf8562e6fc677d5b1845b152ec39e337f4eb2e91662")
version("1.1.7", sha256="fbf0bf29cc775357dad4f8a2f0c2ffa98bbf69d603a96353e75b321adef67573")
# pip silently replaces distutils with setuptools
depends_on("py-setuptools", type="build")
depends_on("py-pyqt4", type=("build", "run"), when="@:1.1")
depends_on("py-pyqt5", type=("build", "run"), when="@1.2.0:")
depends_on("py-numpy", type=("build", "run"))
depends_on("gdal@1.11.0:+python")