summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-arrangements/package.py
blob: e45989522be1ff2ca4da3cbcb81987ba3a3d0dcb (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
# 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 RArrangements(RPackage):
    """Fast Generators and Iterators for Permutations, Combinations, Integer
    Partitions and Compositions.

    Fast generators and iterators for permutations, combinations, integer
    partitions and compositions. The arrangements are in lexicographical order
    and generated iteratively in a memory efficient manner. It has been
    demonstrated that 'arrangements' outperforms most existing packages of
    similar kind. Benchmarks could be found at
    <https://randy3k.github.io/arrangements/articles/benchmark.html>."""

    cran = "arrangements"

    license("MIT")

    version("1.1.9", sha256="e9b5dcb185ec9b28201b196384b04a8d5a15f4ddb9e0b0b2a0c718635ff7345b")

    depends_on("r@3.4.0:", type=("build", "run"))
    depends_on("r-gmp", type=("build", "run"))
    depends_on("r-r6", type=("build", "run"))
    depends_on("gmp@4.2.3:")