Added py-eprosima-fastdds package (#38877)

* Added py-eprosima-fastdds package

* Fixed python extension and dependency version

* Added build type for swig

* Added minimum cmake support

* Added py-test dependency

* Added suggestion on python extension

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Added suggestion on build type for cmake

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

---------

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
Daniele Cesarini 2023-07-17 17:12:29 +02:00 committed by GitHub
parent 53ae969aa0
commit 469f06a8f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,29 @@
# 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 PyEprosimaFastdds(CMakePackage, PythonExtension):
"""eprosima Fast DDS (formerly Fast RTPS) is a C++ implementation of the DDS
(Data Distribution Service) standard of the OMG (Object Management Group).
eProsima Fast DDS implements the RTPS (Real Time Publish Subscribe) protocol,
which provides publisher-subscriber communications over unreliable transports
such as UDP, as defined and maintained by the Object Management Group (OMG) consortium.
This is the python interface for eprosima Fast DDS."""
homepage = "https://www.eprosima.com/"
url = "https://github.com/eProsima/Fast-DDS-python/archive/v1.2.2.tar.gz"
version("1.2.2", sha256="78c53739a66544b8c91d0016560c267e11bd7fdaf727b3bfbffd44ae65c93c62")
depends_on("cmake@3.15:", type="build")
extends("python")
depends_on("py-pytest", type="test")
depends_on("swig", type=("build"))
depends_on("eprosima-fastdds")
depends_on("openssl")
root_cmakelists_dir = "fastdds_python"