forked from mirrors/nixpkgs
pythonPackages.qscintilla-qt5: fix darwin make
This commit is contained in:
parent
b1964626fb
commit
c39ac29724
|
@ -19,7 +19,7 @@ in buildPythonPackage rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ sip qmake pyqt-builder ];
|
nativeBuildInputs = [ sip qmake pyqt-builder ];
|
||||||
buildInputs = [ qtbase qscintilla ];
|
buildInputs = [ qtbase qscintilla ];
|
||||||
propagatedBuildInputs = [ pyqt5 pyqt5 ] ++ lib.optional (stdenv.isDarwin) qtmacextras;
|
propagatedBuildInputs = [ pyqt5 ] ++ lib.optional (stdenv.isDarwin) qtmacextras;
|
||||||
|
|
||||||
dontWrapQtApps = true;
|
dontWrapQtApps = true;
|
||||||
|
|
||||||
|
@ -41,7 +41,18 @@ in buildPythonPackage rec {
|
||||||
cd Python
|
cd Python
|
||||||
cp pyproject-qt5.toml pyproject.toml
|
cp pyproject-qt5.toml pyproject.toml
|
||||||
echo '[tool.sip.project]' >> pyproject.toml
|
echo '[tool.sip.project]' >> pyproject.toml
|
||||||
echo 'sip-include-dirs = [ "${sipIncludeDirs}" ]' >> pyproject.toml
|
echo 'sip-include-dirs = [ "${sipIncludeDirs}"]' >> pyproject.toml
|
||||||
|
'' + lib.optionalString stdenv.isDarwin ''
|
||||||
|
substituteInPlace project.py \
|
||||||
|
--replace \
|
||||||
|
"if self.project.qsci_external_lib:
|
||||||
|
if self.qsci_features_dir is not None:" \
|
||||||
|
"if self.project.qsci_external_lib:
|
||||||
|
self.builder_settings.append('QT += widgets')
|
||||||
|
|
||||||
|
self.builder_settings.append('QT += printsupport')
|
||||||
|
|
||||||
|
if self.qsci_features_dir is not None:"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
dontConfigure = true;
|
dontConfigure = true;
|
||||||
|
@ -61,8 +72,7 @@ in buildPythonPackage rec {
|
||||||
#
|
#
|
||||||
|
|
||||||
build = "sip-install --qsci-features-dir ${qsciFeaturesDir} --qsci-include-dir ${qsciIncludeDir} \
|
build = "sip-install --qsci-features-dir ${qsciFeaturesDir} --qsci-include-dir ${qsciIncludeDir} \
|
||||||
--qsci-library-dir ${qsciLibraryDir} --api-dir ${apiDir}" + lib.optionalString stdenv.isDarwin
|
--qsci-library-dir ${qsciLibraryDir} --api-dir ${apiDir}";
|
||||||
" --qmake-setting 'QT += widgets'";
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
# Needed by pythonImportsCheck to find the module
|
# Needed by pythonImportsCheck to find the module
|
||||||
|
|
Loading…
Reference in a new issue