1{ buildPythonPackage, wrapPython, python, fetchurl, stdenv, cmake, qt5,
2 shiboken2, pyside2 }:
3
4stdenv.mkDerivation {
5 pname = "pyside2-tools";
6
7 inherit (pyside2) version src;
8
9 postPatch = ''
10 cd sources/pyside2-tools
11 '';
12
13 nativeBuildInputs = [ cmake wrapPython ];
14 propagatedBuildInputs = [ shiboken2 pyside2 ];
15 buildInputs = [ python qt5.qtbase ];
16
17 cmakeFlags = [
18 "-DBUILD_TESTS=OFF"
19 ];
20
21 postInstall = ''
22 rm $out/bin/pyside_tool.py
23 '';
24
25 postFixup = ''
26 wrapPythonPrograms
27 '';
28
29 meta = with stdenv.lib; {
30 description = "PySide2 development tools";
31 license = licenses.gpl2;
32 homepage = "https://wiki.qt.io/Qt_for_Python";
33 maintainers = with maintainers; [ gebner ];
34 };
35}