depot/third_party/nixpkgs/pkgs/development/python-modules/aiohttp-wsgi/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

42 lines
793 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aiohttp-wsgi";
version = "0.9.1";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "etianen";
repo = pname;
rev = version;
sha256 = "sha256-lQ0mAUqsOmozUIMd6nwRATaq8C5SUFGoyQu1v0RBnas=";
};
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
pytestCheckHook
];
disabledTests = [
# makes http request to another server
"testEnviron"
];
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 ];
};
}