From b278a024069f12ba90d983d7652413f37ec977eb Mon Sep 17 00:00:00 2001 From: Erik Heeren Date: Fri, 17 Feb 2023 05:52:52 +0100 Subject: [PATCH] py-pynrrd: new package (#35505) --- .../builtin/packages/py-pynrrd/package.py | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-pynrrd/package.py diff --git a/var/spack/repos/builtin/packages/py-pynrrd/package.py b/var/spack/repos/builtin/packages/py-pynrrd/package.py new file mode 100644 index 0000000000..e6a5858153 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-pynrrd/package.py @@ -0,0 +1,20 @@ +# Copyright 2013-2023 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 PyPynrrd(PythonPackage): + """Python library for reading and writing NRRD files into and from numpy arrays""" + + homepage = "https://github.com/mhe/pynrrd" + pypi = "pynrrd/pynrrd-0.4.0.tar.gz" + + version("1.0.0", sha256="4eb4caba03fbca1b832114515e748336cb67bce70c7f3ae36bfa2e135fc990d2") + + depends_on("py-setuptools", type="build") + depends_on("py-numpy@1.11.1:", type=("build", "run")) + depends_on("py-nptyping", type=("build", "run")) + depends_on("py-typing-extensions", type=("build", "run"))