summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-paramiko/package.py
blob: 598d002d79d6f3d50f38bec529937e80ef18550b (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-2021 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 PyParamiko(PythonPackage):
    """SSH2 protocol library"""

    homepage = "http://www.paramiko.org/"
    pypi = "paramiko/paramiko-2.7.1.tar.gz"

    version('2.7.1', sha256='920492895db8013f6cc0179293147f830b8c7b21fdfc839b6bad760c27459d9f')
    version('2.1.2', sha256='5fae49bed35e2e3d45c4f7b0db2d38b9ca626312d91119b3991d0ecf8125e310')

    variant('invoke', default=False, description='Enable invoke support')

    depends_on('py-setuptools', type='build')
    depends_on('py-bcrypt@3.1.3:', when='@2.7:', type=('build', 'run'))
    depends_on('py-cryptography@1.1:', type=('build', 'run'))
    depends_on('py-cryptography@2.5:', when='@2.7:', type=('build', 'run'))
    depends_on('py-pyasn1@0.1.7:', when='@:2.1', type=('build', 'run'))
    depends_on('py-pynacl@1.0.1:', when='@2.7:', type=('build', 'run'))

    depends_on('py-invoke@1.3:', when='+invoke', type=('build', 'run'))
    conflicts('+invoke', when='@2.1.2')