summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Payerle <payerle@umd.edu>2020-10-21 20:28:34 -0400
committerGitHub <noreply@github.com>2020-10-21 19:28:34 -0500
commit94221fa22577df73c71c598488f532a850caaa0a (patch)
tree7be61d41fa1ab82f3e9faa064e3bbbca7581ee68
parentec068f807060a0bb7405189a8551dd18b3d05ab2 (diff)
downloadspack-94221fa22577df73c71c598488f532a850caaa0a.tar.gz
spack-94221fa22577df73c71c598488f532a850caaa0a.tar.bz2
spack-94221fa22577df73c71c598488f532a850caaa0a.tar.xz
spack-94221fa22577df73c71c598488f532a850caaa0a.zip
new package: py-tinyarray (#19454)
-rw-r--r--var/spack/repos/builtin/packages/py-tinyarray/package.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-tinyarray/package.py b/var/spack/repos/builtin/packages/py-tinyarray/package.py
new file mode 100644
index 0000000000..6c6bb9b154
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-tinyarray/package.py
@@ -0,0 +1,29 @@
+# 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 PyTinyarray(PythonPackage):
+ """Tinyarrays are similar to NumPy arrays, but optimized for
+ small sizes. Common operations on very small arrays are to 3-7
+ times faster than with NumPy (with NumPy 1.6 it used to be up
+ to 35 times), and 3 times less memory is used to store them.
+ Tinyarrays are useful if you need many small arrays of numbers,
+ and cannot combine them into a few large ones."""
+
+ homepage = "https://gitlab.kwant-project.org/kwant/tinyarray"
+ url = "https://downloads.kwant-project.org/tinyarray/tinyarray-1.2.3.tar.gz"
+ git = "https://gitlab.kwant-project.org/kwant/tinyarray"
+
+ # Add a list of GitHub accounts to notify when the
+ # package is updated
+ maintainers = ['payerle']
+
+ version('1.2.3', sha256='47a06f801ed4b3d438f4f7098e244cd0c6d7db09428b1bc5ee813e52234dee9f')
+ version('1.2.2', sha256='660d6d8532e1db5efbebae2861e5733a7082486fbdeb47d57d84b8f477d697e4')
+ version('1.2.1', sha256='47a06f801ed4b3d438f4f7098e244cd0c6d7db09428b1bc5ee813e52234dee9f')
+
+ depends_on('py-setuptools', type='build')