2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, greenlet }:
|
2018-01-20 10:50:25 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "meinheld";
|
2020-06-05 18:44:36 +01:00
|
|
|
version = "1.0.2";
|
2018-01-20 10:50:25 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-05 18:44:36 +01:00
|
|
|
sha256 = "008c76937ac2117cc69e032dc69cea9f85fc605de9bac1417f447c41c16a56d6";
|
2018-01-20 10:50:25 +00:00
|
|
|
};
|
|
|
|
|
2021-04-05 21:48:46 +01:00
|
|
|
patchPhase = ''
|
|
|
|
# Allow greenlet-1.0.0.
|
|
|
|
# See https://github.com/mopemope/meinheld/pull/123
|
|
|
|
substituteInPlace setup.py --replace "greenlet>=0.4.5,<0.5" "greenlet>=0.4.5,<2.0.0"
|
|
|
|
'';
|
|
|
|
|
2018-01-20 10:50:25 +00:00
|
|
|
propagatedBuildInputs = [ greenlet ];
|
|
|
|
|
|
|
|
# No tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-01-20 10:50:25 +00:00
|
|
|
description = "High performance asynchronous Python WSGI Web Server";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://meinheld.org/";
|
2018-01-20 10:50:25 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|