summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-pyasn1-modules/package.py
blob: 003b6eee41696c83a95fed6bcfcfe8feae58e650 (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
# 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 PyPyasn1Modules(PythonPackage):
    """A collection of ASN.1 modules expressed in form of pyasn1 classes.
    Includes protocols PDUs definition (SNMP, LDAP etc.) and various data
    structures (X.509, PKCS etc.)."""

    homepage = "https://github.com/etingof/pyasn1-modules"
    pypi = "pyasn1-modules/pyasn1-modules-0.2.6.tar.gz"

    license("BSD-2-Clause")

    version("0.2.8", sha256="905f84c712230b2c592c19470d3ca8d552de726050d1d1716282a1f6146be65e")
    version("0.2.6", sha256="43c17a83c155229839cc5c6b868e8d0c6041dba149789b6d6e28801c64821722")
    version("0.2.5", sha256="ef721f68f7951fab9b0404d42590f479e30d9005daccb1699b0a51bb4177db96")

    depends_on("python@2.4:", type=("build", "run"))
    depends_on("py-setuptools", type="build")
    depends_on("py-pyasn1@0.4.6:0.4", type=("build", "run"), when="@0.2.6:")
    depends_on("py-pyasn1@0.4.1:0.4", type=("build", "run"), when="@0.2.5")