From de5b4840e96bb026bf9c0a2f0d4114b15c0697df Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Tue, 30 Apr 2024 15:26:35 -0700 Subject: [PATCH] Add quantiphy (#43894) * Add quanitphy Add https://github.com/KenKundert/quantiphy . * Simplify Version Range --- .../builtin/packages/py-quantiphy/package.py | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-quantiphy/package.py diff --git a/var/spack/repos/builtin/packages/py-quantiphy/package.py b/var/spack/repos/builtin/packages/py-quantiphy/package.py new file mode 100644 index 0000000000..528ce4dc5b --- /dev/null +++ b/var/spack/repos/builtin/packages/py-quantiphy/package.py @@ -0,0 +1,22 @@ +# Copyright 2013-2024 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 PyQuantiphy(PythonPackage): + """physical quantities (numbers with units)""" + + homepage = "https://quantiphy.readthedocs.io" + pypi = "quantiphy/quantiphy-2.20.tar.gz" + + maintainers("ax3l") + + license("MIT", checked_by="ax3l") + + version("2.20", sha256="ba5375ac55c3b90077a793588dd5a88aaf81b2c3b0fc9c9359513ac39f6ed84d") + + depends_on("python@3.6:", type=("build", "run")) + depends_on("py-flit-core@2:3", type=("build"))