2022-12-09 19:20:15 -05:00
|
|
|
|
2024-01-19 13:36:49 +00:00
|
|
|
# Copyright 2024 Open Source Robotics Foundation
|
2022-12-09 19:20:15 -05:00
|
|
|
# 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-rolling-python-qt-binding";
|
2024-03-08 13:41:18 +00:00
|
|
|
version = "2.1.1-r2";
|
2022-12-09 19:20:15 -05:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-03-08 13:41:18 +00:00
|
|
|
url = "https://github.com/ros2-gbp/python_qt_binding-release/archive/release/rolling/python_qt_binding/2.1.1-2.tar.gz";
|
|
|
|
name = "2.1.1-2.tar.gz";
|
|
|
|
sha256 = "5e8367363a3cc1bc4520a5119ff1054199cc1854becfdc08bd3bb9cde27882f3";
|
2022-12-09 19:20:15 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|