2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
asgiref,
|
|
|
|
httpx,
|
|
|
|
pdm-backend,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
2023-08-10 07:59:29 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "a2wsgi";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.10.4";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2023-08-10 07:59:29 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-UOgaxVqmCfosZm5CuswlxCTIiEzmBy8afpAhFLfuXWM=";
|
2023-08-10 07:59:29 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ pdm-backend ];
|
2023-08-10 07:59:29 +00:00
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
asgiref
|
|
|
|
httpx
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Convert WSGI app to ASGI app or ASGI app to WSGI app";
|
|
|
|
homepage = "https://github.com/abersheeran/a2wsgi";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|