python312Packages.meinheld: fix build with GCC (#373119)

authored by

OTABI Tomoya and committed by
GitHub
7545924f 09858bf7

+15 -10
+15 -10
pkgs/development/python-modules/meinheld/default.nix
··· 1 { 2 lib, 3 fetchPypi, 4 buildPythonPackage, 5 greenlet, 6 }: 7 8 buildPythonPackage rec { 9 pname = "meinheld"; 10 version = "1.0.2"; 11 - format = "setuptools"; 12 13 src = fetchPypi { 14 inherit pname version; 15 - sha256 = "008c76937ac2117cc69e032dc69cea9f85fc605de9bac1417f447c41c16a56d6"; 16 }; 17 18 - patchPhase = '' 19 - # Allow greenlet-1.0.0. 20 - # See https://github.com/mopemope/meinheld/pull/123 21 - substituteInPlace setup.py --replace "greenlet>=0.4.5,<0.5" "greenlet>=0.4.5" 22 - ''; 23 24 - propagatedBuildInputs = [ greenlet ]; 25 26 # No tests 27 doCheck = false; 28 29 pythonImportsCheck = [ "meinheld" ]; 30 31 - meta = with lib; { 32 description = "High performance asynchronous Python WSGI Web Server"; 33 homepage = "https://meinheld.org/"; 34 - license = licenses.bsd3; 35 }; 36 }
··· 1 { 2 lib, 3 + stdenv, 4 + pythonAtLeast, 5 fetchPypi, 6 buildPythonPackage, 7 + setuptools, 8 greenlet, 9 }: 10 11 buildPythonPackage rec { 12 pname = "meinheld"; 13 version = "1.0.2"; 14 + pyproject = true; 15 + 16 + disabled = pythonAtLeast "3.13"; 17 18 src = fetchPypi { 19 inherit pname version; 20 + hash = "sha256-AIx2k3rCEXzGngMtxpzqn4X8YF3pusFBf0R8QcFqVtY="; 21 }; 22 23 + pythonRelaxDeps = [ "greenlet" ]; 24 + 25 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-Wno-error=implicit-function-declaration"; 26 + 27 + build-system = [ setuptools ]; 28 29 + dependencies = [ greenlet ]; 30 31 # No tests 32 doCheck = false; 33 34 pythonImportsCheck = [ "meinheld" ]; 35 36 + meta = { 37 description = "High performance asynchronous Python WSGI Web Server"; 38 homepage = "https://meinheld.org/"; 39 + license = lib.licenses.bsd3; 40 }; 41 }