at 22.05-pre 1.1 kB view raw
1{ python, fetchurl, lib, stdenv, 2 cmake, ninja, qt5, shiboken2 }: 3 4stdenv.mkDerivation rec { 5 pname = "pyside2"; 6 version = "5.15.2"; 7 8 src = fetchurl { 9 url = "https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${version}-src/pyside-setup-opensource-src-${version}.tar.xz"; 10 sha256 = "060ljj1nzyp4zfz2vasbv2i7gs5rfkkjwxxbisd0fdw01d5m01mk"; 11 }; 12 13 patches = [ 14 ./dont_ignore_optional_modules.patch 15 ]; 16 17 postPatch = '' 18 cd sources/pyside2 19 ''; 20 21 cmakeFlags = [ 22 "-DBUILD_TESTS=OFF" 23 "-DPYTHON_EXECUTABLE=${python.interpreter}" 24 ]; 25 26 nativeBuildInputs = [ cmake ninja qt5.qmake python ]; 27 buildInputs = with qt5; [ 28 qtbase qtxmlpatterns qtmultimedia qttools qtx11extras qtlocation qtscript 29 qtwebsockets qtwebengine qtwebchannel qtcharts qtsensors qtsvg 30 ]; 31 propagatedBuildInputs = [ shiboken2 ]; 32 33 dontWrapQtApps = true; 34 35 meta = with lib; { 36 description = "LGPL-licensed Python bindings for Qt"; 37 license = licenses.lgpl21; 38 homepage = "https://wiki.qt.io/Qt_for_Python"; 39 maintainers = with maintainers; [ gebner ]; 40 }; 41}