aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/pyside2-tools/default.nix
blob: a96ea5d32ff85d2a92e0a57da4d99ea250b5eb2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ buildPythonPackage, wrapPython, python, fetchurl, stdenv, cmake, qt5,
  shiboken2, pyside2 }:

stdenv.mkDerivation {
  pname = "pyside2-tools";

  inherit (pyside2) version src;

  postPatch = ''
    cd sources/pyside2-tools
  '';

  nativeBuildInputs = [ cmake wrapPython ];
  propagatedBuildInputs = [ shiboken2 pyside2 ];
  buildInputs = [ python qt5.qtbase ];

  cmakeFlags = [
    "-DBUILD_TESTS=OFF"
  ];

  postInstall = ''
    rm $out/bin/pyside_tool.py
  '';

  postFixup = ''
    wrapPythonPrograms
  '';

  meta = with stdenv.lib; {
    description = "PySide2 development tools";
    license = licenses.gpl2;
    homepage = "https://wiki.qt.io/Qt_for_Python";
    maintainers = with maintainers; [ gebner ];
  };
}