Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 38 lines 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.12.3"; 7 8 src = fetchurl { 9 url = "https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${version}-src/pyside-setup-everywhere-src-${version}.tar.xz"; 10 sha256 = "0hk89jm8pa0q6kifask5rrffa3bvx02dg2f97ibv7wds9dysnyjg"; 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 shiboken2 python ]; 27 buildInputs = with qt5; [ 28 qtbase qtxmlpatterns qtmultimedia qttools qtx11extras qtlocation qtscript 29 qtwebsockets qtwebengine qtwebchannel qtcharts qtsensors qtsvg 30 ]; 31 32 meta = with stdenv.lib; { 33 description = "LGPL-licensed Python bindings for Qt"; 34 license = licenses.lgpl21; 35 homepage = "https://wiki.qt.io/Qt_for_Python"; 36 maintainers = with maintainers; [ gebner ]; 37 }; 38}