d5f4a57cbf
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
40 lines
730 B
Nix
40 lines
730 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, asgiref
|
|
, httpx
|
|
, pdm-backend
|
|
, pdm-pep517
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "a2wsgi";
|
|
version = "1.7.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-qQb2LAJQ6wIBEguTQX3QsSsQW12zWvQxv+hu8NxburI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pdm-backend
|
|
pdm-pep517
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|