From 4ec545efa22e4f0c6858fcf1cf6d77d5e2d33dae Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Thu, 1 May 2025 16:48:14 -0700 Subject: [PATCH] python313Packages.python-fontconfig: fix broken test --- .../python-modules/python-fontconfig/default.nix | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/python-fontconfig/default.nix b/pkgs/development/python-modules/python-fontconfig/default.nix index 369b41f5522c..f249489e4bac 100644 --- a/pkgs/development/python-modules/python-fontconfig/default.nix +++ b/pkgs/development/python-modules/python-fontconfig/default.nix @@ -1,13 +1,20 @@ { + lib, buildPythonPackage, - cython, fetchPypi, + + # build-system + cython, + setuptools, + + # dependencies fontconfig, freefont_ttf, - lib, makeFontsConf, + + # testing + dejavu_fonts, python, - setuptools, }: let @@ -35,6 +42,8 @@ buildPythonPackage rec { ${python.pythonOnBuildForHost.interpreter} setup.py build_ext -i ''; + nativeCheckInputs = [ dejavu_fonts ]; + preCheck = '' export FONTCONFIG_FILE=${fontsConf}; export HOME=$TMPDIR @@ -50,6 +59,7 @@ buildPythonPackage rec { homepage = "https://github.com/Vayn/python-fontconfig"; description = "Python binding for Fontconfig"; license = lib.licenses.gpl3; + platforms = lib.platforms.all; maintainers = [ ]; }; }