nix-ros-overlay/distros/humble/python-qt-binding/default.nix

36 lines
1.4 KiB
Nix

# Copyright 2025 Open Source Robotics Foundation
# Distributed under the terms of the BSD license
{ lib, buildRosPackage, fetchurl, ament-cmake, ament-cmake-pytest, ament-lint-auto, ament-lint-common, python3Packages, qt5 }:
buildRosPackage {
pname = "ros-humble-python-qt-binding";
version = "1.1.2-r1";
src = fetchurl {
url = "https://github.com/ros2-gbp/python_qt_binding-release/archive/release/humble/python_qt_binding/1.1.2-1.tar.gz";
name = "1.1.2-1.tar.gz";
sha256 = "b1518a6ae78b1d361a6007f7d5543fd2787de31c541ec2a9a4e1807d237f1ec5";
};
buildType = "ament_cmake";
buildInputs = [ ament-cmake qt5.qtbase ];
checkInputs = [ ament-cmake-pytest ament-lint-auto ament-lint-common ];
propagatedBuildInputs = [ python3Packages.pyqt5 ];
nativeBuildInputs = [ ament-cmake ];
meta = {
description = "This stack provides Python bindings for Qt.
There are two providers: pyside and pyqt. PySide2 is available under
the GPL, LGPL and a commercial license. PyQt is released under the GPL.
Both the bindings and tools to build bindings are included from each
available provider. For PySide, it is called "Shiboken". For PyQt,
this is called "SIP".
Also provided is adapter code to make the user's Python code
independent of which binding provider was actually used which makes
it very easy to switch between these.";
license = with lib.licenses; [ bsdOriginal ];
};
}