3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/aiohttp/default.nix

40 lines
835 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, attrs
, chardet
, multidict
, async-timeout
, yarl
, idna-ssl
, pytest
, gunicorn
, pytest-mock
2018-04-04 18:31:03 +01:00
, async_generator
}:
buildPythonPackage rec {
pname = "aiohttp";
2018-05-09 15:45:13 +01:00
version = "3.1.3";
src = fetchPypi {
inherit pname version;
2018-05-09 15:45:13 +01:00
sha256 = "9fcef0489e3335b200d31a9c1fb6ba80fdafe14cd82b971168c2f9fa1e4508ad";
};
disabled = pythonOlder "3.5";
2018-04-04 18:31:03 +01:00
checkInputs = [ pytest gunicorn pytest-mock async_generator ];
propagatedBuildInputs = [ attrs chardet multidict async-timeout yarl ]
++ lib.optional (pythonOlder "3.7") idna-ssl;
meta = with lib; {
description = "Asynchronous HTTP Client/Server for Python and asyncio";
license = licenses.asl20;
homepage = https://github.com/aio-libs/aiohttp;
maintainers = with maintainers; [ dotlambda ];
};
}