python312Packages.pkgconfig: disable tests

They rely on distutils, which has been removed from the stdlib.
This commit is contained in:
Martin Weinelt 2023-10-29 14:59:05 +01:00
parent 7606692796
commit ad821a1c2e
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -1,6 +1,7 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, pythonOlder
, poetry-core , poetry-core
, pkg-config , pkg-config
, pytestCheckHook , pytestCheckHook
@ -37,6 +38,10 @@ buildPythonPackage rec {
nativeBuildInputs = [ poetry-core ]; nativeBuildInputs = [ poetry-core ];
# ModuleNotFoundError: No module named 'distutils'
# https://github.com/matze/pkgconfig/issues/64
doCheck = pythonOlder "3.12";
nativeCheckInputs = [ pytestCheckHook ]; nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pkgconfig" ]; pythonImportsCheck = [ "pkgconfig" ];