pkgs/development/python-modules: stdenv.lib -> lib

This commit is contained in:
Pavol Rusnak
2021-01-24 01:29:22 +01:00
parent 2f34b4b883
commit a4bbfba80d
211 changed files with 525 additions and 546 deletions

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, buildPythonPackage, python, dbus-python, sip, qt4, pkg-config, lndir, dbus, makeWrapper }:
{ lib, stdenv, fetchurl, buildPythonPackage, python, dbus-python, sip, qt4, pkg-config, lndir, dbus, makeWrapper }:
buildPythonPackage rec {
pname = "PyQt-x11-gpl";
@@ -16,13 +16,13 @@ buildPythonPackage rec {
rm -rf "$out/nix-support"
export PYTHONPATH=$PYTHONPATH:$out/lib/${python.libPrefix}/site-packages
${stdenv.lib.optionalString stdenv.isDarwin ''
${lib.optionalString stdenv.isDarwin ''
export QMAKESPEC="unsupported/macx-clang-libc++" # macOS target after bootstrapping phase \
''}
substituteInPlace configure.py \
--replace 'install_dir=pydbusmoddir' "install_dir='$out/lib/${python.libPrefix}/site-packages/dbus/mainloop'" \
${stdenv.lib.optionalString stdenv.isDarwin ''
${lib.optionalString stdenv.isDarwin ''
--replace "qt_macx_spec = 'macx-g++'" "qt_macx_spec = 'unsupported/macx-clang-libc++'" # for bootstrapping phase \
''}
@@ -38,7 +38,7 @@ buildPythonPackage rec {
"--destdir=${placeholder "out"}/${python.sitePackages}"
"--plugin-destdir=${placeholder "out"}/lib/qt4/plugins"
"--sipdir=${placeholder "out"}/share/sip/PyQt4"
"--dbus=${stdenv.lib.getDev dbus-python}/include/dbus-1.0"
"--dbus=${lib.getDev dbus-python}/include/dbus-1.0"
"--verbose"
];
@@ -59,11 +59,11 @@ buildPythonPackage rec {
qt = qt4;
};
meta = {
meta = with lib; {
description = "Python bindings for Qt";
license = "GPL";
homepage = "http://www.riverbankcomputing.co.uk";
maintainers = [ stdenv.lib.maintainers.sander ];
platforms = stdenv.lib.platforms.mesaPlatforms;
maintainers = [ maintainers.sander ];
platforms = platforms.mesaPlatforms;
};
}