python312Packages.meinheld: fix build with GCC

This commit is contained in:
natsukium
2025-01-12 13:15:06 +09:00
parent a0e7edfafa
commit 8d0d701fe3
@@ -1,5 +1,7 @@
{
lib,
stdenv,
pythonAtLeast,
fetchPypi,
buildPythonPackage,
greenlet,
@@ -10,6 +12,8 @@ buildPythonPackage rec {
version = "1.0.2";
format = "setuptools";
disabled = pythonAtLeast "3.13";
src = fetchPypi {
inherit pname version;
sha256 = "008c76937ac2117cc69e032dc69cea9f85fc605de9bac1417f447c41c16a56d6";
@@ -21,6 +25,8 @@ buildPythonPackage rec {
substituteInPlace setup.py --replace "greenlet>=0.4.5,<0.5" "greenlet>=0.4.5"
'';
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-Wno-error=implicit-function-declaration";
propagatedBuildInputs = [ greenlet ];
# No tests