diff options
Diffstat (limited to 'pkgs/development/python-modules/shiboken2/default.nix')
-rw-r--r-- | pkgs/development/python-modules/shiboken2/default.nix | 68 |
1 files changed, 37 insertions, 31 deletions
diff --git a/pkgs/development/python-modules/shiboken2/default.nix b/pkgs/development/python-modules/shiboken2/default.nix index 45eecc6faebf..88f59fc86ebb 100644 --- a/pkgs/development/python-modules/shiboken2/default.nix +++ b/pkgs/development/python-modules/shiboken2/default.nix @@ -1,21 +1,18 @@ -{ python -, lib -, stdenv -, pyside2 -, cmake -, qt5 -, libxcrypt -, llvmPackages_15 +{ + python, + lib, + stdenv, + pyside2, + cmake, + qt5, + libxcrypt, + llvmPackages_15, }: stdenv.mkDerivation { pname = "shiboken2"; - inherit (pyside2) version src; - - patches = [ - ./nix_compile_cflags.patch - ]; + inherit (pyside2) version src patches; postPatch = '' cd sources/shiboken2 @@ -23,24 +20,31 @@ stdenv.mkDerivation { CLANG_INSTALL_DIR = llvmPackages_15.libclang.out; - nativeBuildInputs = [ cmake ]; - - buildInputs = [ - llvmPackages_15.libclang - python - python.pkgs.setuptools - qt5.qtbase - qt5.qtxmlpatterns - ] ++ (lib.optionals (python.pythonOlder "3.9") [ - # see similar issue: 202262 - # libxcrypt is required for crypt.h for building older python modules - libxcrypt - ]); - - cmakeFlags = [ - "-DBUILD_TESTS=OFF" + nativeBuildInputs = [ + cmake + (python.withPackages ( + ps: with ps; [ + distutils + setuptools + ] + )) ]; + buildInputs = + [ + llvmPackages_15.libclang + python.pkgs.setuptools + qt5.qtbase + qt5.qtxmlpatterns + ] + ++ (lib.optionals (python.pythonOlder "3.9") [ + # see similar issue: 202262 + # libxcrypt is required for crypt.h for building older python modules + libxcrypt + ]); + + cmakeFlags = [ "-DBUILD_TESTS=OFF" ]; + dontWrapQtApps = true; postInstall = '' @@ -53,9 +57,11 @@ stdenv.mkDerivation { meta = with lib; { description = "Generator for the PySide2 Qt bindings"; mainProgram = "shiboken2"; - license = with licenses; [ gpl2 lgpl21 ]; + license = with licenses; [ + gpl2 + lgpl21 + ]; homepage = "https://wiki.qt.io/Qt_for_Python"; maintainers = with maintainers; [ gebner ]; - broken = stdenv.isDarwin; }; } |