1 import ./make-test-python.nix ({ pkgs, lib, ... }: {
2 name = "noto-fonts-cjk-qt";
3 meta.maintainers = with lib.maintainers; [ oxalica ];
6 imports = [ ./common/x11.nix ];
8 enableDefaultPackages = false;
9 fonts = [ pkgs.noto-fonts-cjk-sans ];
15 script = pkgs.writers.writePython3 "qt-default-weight" {
16 libraries = [ pkgs.python3Packages.pyqt6 ];
18 from PyQt6.QtWidgets import QApplication
19 from PyQt6.QtGui import QFont, QRawFont
21 app = QApplication([])
22 f = QRawFont.fromFont(QFont("Noto Sans CJK SC", 20))
24 assert f.styleName() == "Regular", f.styleName()
28 machine.succeed("${script}")