From 5d248a3c6747e6867d4a875f5f368c1bbb60cd21 Mon Sep 17 00:00:00 2001 From: Tom Payerle Date: Tue, 1 Dec 2020 14:25:12 -0500 Subject: New package: py-qsymm (#19455) * New package: py-qsymm * py-qsymm: Convert to using tarballs from PyPi instead of git checkouts * py-qsymm: add missing dependencies * Update var/spack/repos/builtin/packages/py-qsymm/package.py Co-authored-by: Adam J. Stewart * py-qsymm: Fix url to use pypi hidden download interface Co-authored-by: Adam J. Stewart --- .../repos/builtin/packages/py-qsymm/package.py | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-qsymm/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/py-qsymm/package.py b/var/spack/repos/builtin/packages/py-qsymm/package.py new file mode 100644 index 0000000000..6817a72a80 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-qsymm/package.py @@ -0,0 +1,31 @@ +# Copyright 2013-2020 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 PyQsymm(PythonPackage): + """Qsymm is a symmetry finder and symmetric Hamiltonian generator. + It automatically generates model Hamiltonians from symmetry + constraints and finds the full symmetry group of your Hamiltonian.""" + + homepage = "https://gitlab.kwant-project.org/qt/qsymm" + url = "https://pypi.io/packages/source/q/qsymm/qsymm-1.2.7.tar.gz" + git = "https://gitlab.kwant-project.org/qt/qsymm.git" + + # Add a list of GitHub accounts to notify when the + # package is updated + maintainers = ['payerle'] + + version('1.2.7', sha256='9af92a30c3f72883c744d4717e4ec30c8b48121e208c10553e8e0e428fe43bbc') + + depends_on('python@3.5:', type=('build', 'run')) + depends_on('py-setuptools', type='build') + depends_on('py-numpy@1.13:', type=('build', 'run')) + depends_on('py-scipy@0.19:', type=('build', 'run')) + depends_on('py-sympy@1.1:', type=('build', 'run')) + depends_on('py-tinyarray', type=('build', 'run')) + depends_on('py-pytest', type='test') + depends_on('py-pytest-runner', type='build') -- cgit v1.2.3-70-g09d2