0d9fc34957
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
32 lines
736 B
Nix
32 lines
736 B
Nix
{ lib, fetchPypi, buildPythonPackage, greenlet }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "meinheld";
|
|
version = "1.0.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "008c76937ac2117cc69e032dc69cea9f85fc605de9bac1417f447c41c16a56d6";
|
|
};
|
|
|
|
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"
|
|
'';
|
|
|
|
propagatedBuildInputs = [ greenlet ];
|
|
|
|
# No tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"meinheld"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "High performance asynchronous Python WSGI Web Server";
|
|
homepage = "https://meinheld.org/";
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|