blob: 74c7172ecedeeb9f8d90cae0048cc7e784d6ea3c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# 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 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")
license("BSD-2-Clause")
version("1.2.4", sha256="ecd3428fd8a48b61fc5f0a413ede03e27db3a1dd53fcd49e24a36d11a8a29aba")
version("1.2.3", sha256="47a06f801ed4b3d438f4f7098e244cd0c6d7db09428b1bc5ee813e52234dee9f")
version("1.2.2", sha256="660d6d8532e1db5efbebae2861e5733a7082486fbdeb47d57d84b8f477d697e4")
version("1.2.1", sha256="47a06f801ed4b3d438f4f7098e244cd0c6d7db09428b1bc5ee813e52234dee9f")
depends_on("py-setuptools", type="build")
# See https://gitlab.kwant-project.org/kwant/tinyarray/-/merge_requests/14
conflicts("^python@3.10:", when="@:1.2.3", msg="py-tinyarray must be @1.2.4: for python@3.10")
|