summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/nanopb/package.py
blob: b64710507a58d7a43ee3136d147a285012c1408b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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 Nanopb(CMakePackage):
    """Nanopb is a small code-size Protocol Buffers implementation
    in ansi C."""

    homepage = "https://jpa.kapsi.fi/nanopb/"
    url = "https://github.com/nanopb/nanopb/archive/0.3.9.1.tar.gz"

    license("Zlib")

    version("0.3.9.1", sha256="b22d1f86d4adb2aa0436a277c4a59a5adfc467cafeb9bf405c27ef136599bbb3")

    depends_on("protobuf", type=("build"))
    depends_on("py-protobuf", type=("build"))