17 buildPythonPackage rec {
18 pname = "pyqtdarktheme";
22 disabled = pythonOlder "3.7";
24 src = fetchFromGitHub {
26 repo = "PyQtDarkTheme";
28 hash = "sha256-jK+wnIyPE8Bav0pzbvVisYYCzdRshYw1S2t0H3Pro5M=";
31 patches = [ ./add-missing-argument-to-the-proxy-style-initializer.patch ];
33 nativeBuildInputs = [ poetry-core ];
35 propagatedBuildInputs = [ darkdetect ];
44 pythonImportsCheck = [ "qdarktheme" ];
47 sed -i 's#darkdetect = ".*"#darkdetect = "*"#' pyproject.toml
51 export HOME=$(mktemp -d)
52 export QT_PLUGIN_PATH="${qt5.qtbase.bin}/${qt5.qtbase.qtPluginPrefix}"
53 export QT_QPA_PLATFORM_PLUGIN_PATH="${qt5.qtbase.bin}/lib/qt-${qt5.qtbase.version}/plugins";
54 export QT_QPA_PLATFORM=offscreen
58 description = "Flat dark theme for PySide and PyQt";
59 homepage = "https://pyqtdarktheme.readthedocs.io/en/stable";
60 license = licenses.mit;
61 maintainers = with maintainers; [ paveloom ];