Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 1.1 kB view raw
1{ buildPythonPackage, python, fetchurl, stdenv, 2 cmake, ninja, qt5, shiboken2 }: 3 4stdenv.mkDerivation rec { 5 pname = "pyside2"; 6 version = "5.15.0"; 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 = "0s3bgddcsf6w297nyxv08xpc2nnr3sli980p24nf4xivvr9yxkgi"; 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 meta = with stdenv.lib; { 34 description = "LGPL-licensed Python bindings for Qt"; 35 license = licenses.lgpl21; 36 homepage = "https://wiki.qt.io/Qt_for_Python"; 37 maintainers = with maintainers; [ gebner ]; 38 }; 39}