summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-flye/package.py
blob: 3046062553e28417f95fc4a6f47e15905606c989 (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
36
37
38
39
40
# 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 PyFlye(PythonPackage):
    """Fast and accurate de novo assembler for single molecule sequencing
    reads"""

    homepage = "https://github.com/fenderglass/Flye"
    url = "https://github.com/fenderglass/Flye/archive/2.6.tar.gz"

    license("BSD-3-Clause")

    version("2.9", sha256="158ea620d4aa92a53dae1832b09fd605e17552e45b83eecbf28e41a4516a6957")
    version("2.8.3", sha256="070f9fbee28eef8e8f87aaecc048053f50a8102a3715e71b16c9c46819a4e07c")
    version("2.8.2", sha256="f1284bd2a777356fbf808d89052bc0f9bf5602560dde7cf722d7974d9a94d03b")
    version("2.8.1", sha256="436ebe884e5000c023d78c098596d22c235c916f91e6c29a79b88a21e611fcb4")
    version("2.7", sha256="4d595f53bd68c820b43509ce6ee7284847237e70a3b4bc16c57170bb538d3947")
    version("2.7.1", sha256="0e826261c81537a7fa8fd37dc583edd75535eee0f30429d6bdb55f37b5722dbb")
    version("2.6", sha256="5bdc44b84712794fa4264eed690d8c65c0d72f495c7bbf2cd15b634254809131")

    # https://github.com/fenderglass/Flye/blob/flye/docs/INSTALL.md
    depends_on("python@2.7:2.8,3.5:", type=("build", "run"))
    depends_on("py-setuptools", type="build")
    depends_on("gmake", type="build")
    depends_on("zlib-api")

    msg = "C++ compiler with C++11 support required"
    conflicts("%gcc@:4.7", msg=msg)
    conflicts("%clang@:3.2", msg=msg)
    conflicts("%apple-clang@:4.9", msg=msg)

    def setup_build_environment(self, env):
        if self.spec.target.family == "aarch64":
            env.set("arm_neon", "1")
            env.set("aarch64", "1")