13 pname = "pyside2-tools";
15 inherit (pyside2) version src;
18 # Upstream has a crazy build system only geared towards producing binary
19 # wheels distributed via pypi. For this, they copy the `uic` and `rcc`
20 # binaries to the wheel.
21 ./remove_hacky_binary_copying.patch
25 cd sources/pyside2-tools
32 propagatedBuildInputs = [
41 cmakeFlags = [ "-DBUILD_TESTS=OFF" ];
43 dontWrapQtApps = true;
45 # The upstream build system consists of a `setup.py` whichs builds three
46 # different python libraries and calls cmake as a subprocess. We call cmake
47 # directly because that's easier to get working. However, the `setup.py`
48 # build also creates a few wrapper scripts, which we replicate here:
50 rm $out/bin/pyside_tool.py
52 for tool in uic rcc; do
53 makeWrapper "$(command -v $tool)" $out/bin/pyside2-$tool --add-flags "-g python"
62 description = "PySide2 development tools";
63 license = licenses.gpl2;
64 homepage = "https://wiki.qt.io/Qt_for_Python";
65 maintainers = with maintainers; [ gebner ];