From ad821a1c2ec10044d79d01e0afa92727242d4c71 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 29 Oct 2023 14:59:05 +0100 Subject: [PATCH] python312Packages.pkgconfig: disable tests They rely on distutils, which has been removed from the stdlib. --- pkgs/development/python-modules/pkgconfig/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/pkgconfig/default.nix b/pkgs/development/python-modules/pkgconfig/default.nix index b5fc0c4499c9..89fc2fd32f74 100644 --- a/pkgs/development/python-modules/pkgconfig/default.nix +++ b/pkgs/development/python-modules/pkgconfig/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchFromGitHub +, pythonOlder , poetry-core , pkg-config , pytestCheckHook @@ -37,6 +38,10 @@ buildPythonPackage rec { nativeBuildInputs = [ poetry-core ]; + # ModuleNotFoundError: No module named 'distutils' + # https://github.com/matze/pkgconfig/issues/64 + doCheck = pythonOlder "3.12"; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "pkgconfig" ];