nix-ros-overlay/distros/humble/rclpy/default.nix

26 lines
1.6 KiB
Nix

# Copyright 2025 Open Source Robotics Foundation
# Distributed under the terms of the BSD license
{ lib, buildRosPackage, fetchurl, ament-cmake, ament-cmake-gtest, ament-cmake-pytest, ament-index-python, ament-lint-auto, ament-lint-common, builtin-interfaces, pybind11-vendor, python-cmake-module, python3Packages, rcl, rcl-action, rcl-interfaces, rcl-lifecycle, rcl-logging-interface, rcl-yaml-param-parser, rcpputils, rcutils, rmw, rmw-implementation, rmw-implementation-cmake, rosgraph-msgs, rosidl-generator-py, rosidl-runtime-c, rpyutils, test-msgs, unique-identifier-msgs }:
buildRosPackage {
pname = "ros-humble-rclpy";
version = "3.3.16-r1";
src = fetchurl {
url = "https://github.com/ros2-gbp/rclpy-release/archive/release/humble/rclpy/3.3.16-1.tar.gz";
name = "3.3.16-1.tar.gz";
sha256 = "993bf3ced83980520551671ba5ceb9aeea1d69fd7aa3095803fde9836e9c60df";
};
buildType = "ament_cmake";
buildInputs = [ ament-cmake pybind11-vendor python-cmake-module rcpputils rcutils rmw-implementation-cmake ];
checkInputs = [ ament-cmake-gtest ament-cmake-pytest ament-lint-auto ament-lint-common python3Packages.pytest rosidl-generator-py test-msgs ];
propagatedBuildInputs = [ ament-index-python builtin-interfaces rcl rcl-action rcl-interfaces rcl-lifecycle rcl-logging-interface rcl-yaml-param-parser rmw rmw-implementation rosgraph-msgs rosidl-runtime-c rpyutils unique-identifier-msgs ];
nativeBuildInputs = [ ament-cmake python-cmake-module ];
meta = {
description = "Package containing the Python client.";
license = with lib.licenses; [ asl20 ];
};
}