python312Packages.pycparser: fix tests for clang stdenv (#373247)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
gitUpdater,
|
||||
@@ -25,6 +26,10 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [ unittestCheckHook ];
|
||||
|
||||
preCheck = ''
|
||||
substituteInPlace examples/using_gcc_E_libc.py \
|
||||
--replace-fail "'gcc'" "'${stdenv.cc.targetPrefix}cc'"
|
||||
'';
|
||||
unittestFlagsArray = [
|
||||
"-s"
|
||||
"tests"
|
||||
|
||||
Reference in New Issue
Block a user