2021-04-09 22:44:02 +01:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiohttp-wsgi";
|
2021-07-12 23:32:16 +01:00
|
|
|
version = "0.9.1";
|
2021-04-09 22:44:02 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "etianen";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-07-12 23:32:16 +01:00
|
|
|
sha256 = "sha256-lQ0mAUqsOmozUIMd6nwRATaq8C5SUFGoyQu1v0RBnas=";
|
2021-04-09 22:44:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-11-23 05:51:41 +00:00
|
|
|
disabledTests = [
|
|
|
|
# makes http request to another server
|
2021-11-27 01:06:12 +00:00
|
|
|
# https://github.com/etianen/aiohttp-wsgi/issues/32
|
2021-11-23 05:51:41 +00:00
|
|
|
"testEnviron"
|
|
|
|
];
|
|
|
|
|
2021-04-09 22:44:02 +01:00
|
|
|
pythonImportsCheck = [ "aiohttp_wsgi" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "WSGI adapter for aiohttp";
|
|
|
|
homepage = "https://github.com/etianen/aiohttp-wsgi";
|
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|