depot/third_party/nixpkgs/pkgs/development/python-modules/pyside2-tools/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

35 lines
728 B
Nix

{ 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 ];
};
}