py-vector: add new package (#28057)

This commit is contained in:
iarspider 2021-12-17 14:14:38 +01:00 committed by GitHub
parent 04bed42831
commit 618fd04729
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,24 @@
# Copyright 2013-2021 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 PyVector(PythonPackage):
"""Vector classes and utilities"""
homepage = "https://github.com/scikit-hep/vector"
pypi = "vector/vector-0.8.4.tar.gz"
version('0.8.4', sha256='ef97bfec0263766edbb74c290401f89921f8d11ae9e4a0ffd904ae40674f1239')
depends_on('python@3.6:', type=('build', 'run'))
depends_on('py-setuptools@42:', type='build')
depends_on('py-setuptools-scm@3.4: +toml', type='build')
depends_on('py-wheel', type='build')
depends_on('py-numpy@1.13.3:', type=('build', 'run'))
depends_on('py-packaging@19.0:', type=('build', 'run'))
depends_on('py-importlib-metadata@0.22:', type=('build', 'run'), when='^python@:3.7')
depends_on('py-typing-extensions', type=('build', 'run'), when='^python@:3.7')